|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.test.junit_extension.ManageOutputDevice
public class ManageOutputDevice
This class manupulates the output of the system. Methode output like System.out.println("blah") may be send to something else than the console.
| Constructor Summary | |
|---|---|
ManageOutputDevice()
|
|
| Method Summary | |
|---|---|
static void |
setAllSystemOutputToDefault()
sets the System.err and System.out to their values, which were
set, when this class was loaded. |
static void |
setAllSystemOutputToNirvana()
sets the System.err and System.out to a virtual
java.io.ByteArrayOutputStream |
static void |
setSysErrToDefault()
sets the System.err to the value, which was set, when this class was loaded by
the VM. |
static void |
setSysErrToFile(java.lang.String descriptor)
sets the System.err to a file based java.io.PrintStream |
static void |
setSysErrToNirvana()
sets the System.err to a virtual java.io.ByteArrayOutputStream |
static void |
setSysOutToDefault()
sets the System.out to the value, which was set, when the class was loaded by
the VM. |
static void |
setSysOutToFile(java.lang.String descriptor)
sets the System.out to a file based java.io.PrintStream |
static void |
setSysOutToNirvana()
sets the System.out to a virtual java.io.ByteArrayOutputStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManageOutputDevice()
| Method Detail |
|---|
public static void setSysOutToFile(java.lang.String descriptor)
throws java.io.FileNotFoundException
System.out to a file based java.io.PrintStream
descriptor - a full qualified filename File.File(String pathname)
java.io.FileNotFoundExceptionpublic static void setSysOutToDefault()
System.out to the value, which was set, when the class was loaded by
the VM.
public static void setSysOutToNirvana()
System.out to a virtual java.io.ByteArrayOutputStream
public static void setSysErrToFile(java.lang.String descriptor)
throws java.io.FileNotFoundException
System.err to a file based java.io.PrintStream
descriptor -
java.io.FileNotFoundExceptionpublic static void setSysErrToDefault()
System.err to the value, which was set, when this class was loaded by
the VM.
public static void setSysErrToNirvana()
System.err to a virtual java.io.ByteArrayOutputStream
public static void setAllSystemOutputToNirvana()
System.err and System.out to a virtual
java.io.ByteArrayOutputStream
public static void setAllSystemOutputToDefault()
System.err and System.out to their values, which were
set, when this class was loaded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||