public class ManageOutputDevice extends Object
Constructor and Description |
---|
ManageOutputDevice() |
Modifier and Type | Method and Description |
---|---|
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(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(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 |
public static void setSysOutToFile(String descriptor) throws FileNotFoundException
System.out
to a file based java.io.PrintStream
descriptor
- a full qualified filename, see File.File(String pathname)
FileNotFoundException
- -public 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(String descriptor) throws FileNotFoundException
System.err
to a file based java.io.PrintStream
descriptor
- -FileNotFoundException
- -public 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.Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.