Class ManageOutputDevice
java.lang.Object
org.apache.uima.test.junit_extension.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsets theSystem.errandSystem.outto their values, which were set, when this class was loaded.static voidsets theSystem.errandSystem.outto a virtualjava.io.ByteArrayOutputStreamstatic voidsets theSystem.errto the value, which was set, when this class was loaded by the VM.static voidsetSysErrToFile(String descriptor) sets theSystem.errto a file basedjava.io.PrintStreamstatic voidsets theSystem.errto a virtualjava.io.ByteArrayOutputStreamstatic voidsets theSystem.outto the value, which was set, when the class was loaded by the VM.static voidsetSysOutToFile(String descriptor) sets theSystem.outto a file basedjava.io.PrintStreamstatic voidsets theSystem.outto a virtualjava.io.ByteArrayOutputStream
-
Constructor Details
-
ManageOutputDevice
public ManageOutputDevice()
-
-
Method Details
-
setSysOutToFile
sets theSystem.outto a file basedjava.io.PrintStream- Parameters:
descriptor- a full qualified filename, seeFile(String pathname)- Throws:
FileNotFoundException- -
-
setSysOutToDefault
public static void setSysOutToDefault()sets theSystem.outto the value, which was set, when the class was loaded by the VM. -
setSysOutToNirvana
public static void setSysOutToNirvana()sets theSystem.outto a virtualjava.io.ByteArrayOutputStream -
setSysErrToFile
sets theSystem.errto a file basedjava.io.PrintStream- Parameters:
descriptor- -- Throws:
FileNotFoundException- -
-
setSysErrToDefault
public static void setSysErrToDefault()sets theSystem.errto the value, which was set, when this class was loaded by the VM. -
setSysErrToNirvana
public static void setSysErrToNirvana()sets theSystem.errto a virtualjava.io.ByteArrayOutputStream -
setAllSystemOutputToNirvana
public static void setAllSystemOutputToNirvana()sets theSystem.errandSystem.outto a virtualjava.io.ByteArrayOutputStream -
setAllSystemOutputToDefault
public static void setAllSystemOutputToDefault()sets theSystem.errandSystem.outto their values, which were set, when this class was loaded.
-