DthingApi
Public Member Functions | List of all members
java.io.PrintStream Class Reference
Inheritance diagram for java.io.PrintStream:
java.io.FilterOutputStream java.io.OutputStream

Public Member Functions

 PrintStream (OutputStream out)
 
 PrintStream (OutputStream out, boolean autoFlush)
 
 PrintStream (OutputStream out, boolean autoFlush, String enc) throws UnsupportedEncodingException
 
- Public Member Functions inherited from java.io.FilterOutputStream
 FilterOutputStream (OutputStream out)
 
void close () throws IOException
 
void flush () throws IOException
 
void write (byte[] buffer, int offset, int length) throws IOException
 
void write (int oneByte) throws IOException
 
- Public Member Functions inherited from java.io.OutputStream
 OutputStream ()
 
void close () throws IOException
 
void flush () throws IOException
 
void write (byte[] buffer) throws IOException
 
void write (byte[] buffer, int offset, int count) throws IOException
 
abstract void write (int oneByte) throws IOException
 

Additional Inherited Members

- Protected Attributes inherited from java.io.FilterOutputStream
OutputStream out
 

Detailed Description

Wraps an existing OutputStream and provides convenience methods for writing common data types in a human readable format. This is not to be confused with DataOutputStream which is used for encoding common data types so that they can be read back in. No

IOException

is thrown by this class. Instead, callers should use checkError() to see if a problem has occurred in this stream.

Constructor & Destructor Documentation

◆ PrintStream() [1/3]

java.io.PrintStream.PrintStream ( OutputStream  out)
inline

Constructs a new

with

as its target stream. By default, the new print stream does not automatically flush its contents to the target stream when a newline is encountered.

Parameters
outthe target output stream.
Exceptions
NullPointerExceptionif is
null
.

◆ PrintStream() [2/3]

java.io.PrintStream.PrintStream ( OutputStream  out,
boolean  autoFlush 
)
inline

Constructs a new

with

as its target stream. The parameter

autoFlush

determines if the print stream automatically flushes its contents to the target stream when a newline is encountered.

Parameters
outthe target output stream.
autoFlushindicates whether to flush contents upon encountering a newline sequence.
Exceptions
NullPointerExceptionif is
null
.

◆ PrintStream() [3/3]

java.io.PrintStream.PrintStream ( OutputStream  out,
boolean  autoFlush,
String  enc 
) throws UnsupportedEncodingException
inline

Constructs a new

with

as its target stream and using the character encoding

enc

while writing. The parameter

autoFlush

determines if the print stream automatically flushes its contents to the target stream when a newline is encountered.

Parameters
outthe target output stream.
autoFlushindicates whether or not to flush contents upon encountering a newline sequence.
encthe non-null string describing the desired character encoding.
Exceptions
NullPointerExceptionif or
enc
are
null
.
UnsupportedEncodingExceptionif the encoding specified by
enc
is not supported.

The documentation for this class was generated from the following file: