IOUtils

IO Utilities. Provides stream handling utilities in singleton Threadpool implementation accessed by static members.

Members

Static functions

close
void close(Closeable closeable)

Closes an arbitrary closable, and logs exceptions at ignore level

close
void close(InputStream input)

closes an input stream, and logs exceptions

close
void close(OutputStream os)

closes an output stream, and logs exceptions

copy
void copy(InputStream input, OutputStream output)

Copy Stream input to Stream output until EOF or exception.

copy
void copy(InputStream input, OutputStream output, long byteCount)

Copy Stream input to Stream for byteCount bytes or until EOF or exception.

toString
string toString(InputStream input)

Read input stream to string.

toString
string toString(InputStream input, string encoding)

Read input stream to string.

Variables

CRLF
enum string CRLF;
Undocumented in source.
CRLF_BYTES
enum byte[] CRLF_BYTES;
Undocumented in source.
bufferSize
enum int bufferSize;
Undocumented in source.

Meta