Example usage for Java org.apache.commons.net.io Util fields, constructors, methods, implement or subclass
The text is from its open source code.
int | DEFAULT_COPY_BUFFER_SIZE The default buffer size ( ) used by #copyStream copyStream and #copyReader copyReader and by the copyReader/copyStream methods if a zero or negative buffer size is supplied. |
void | closeQuietly(Closeable closeable) Closes the object quietly, catching rather than throwing IOException. |
void | closeQuietly(Socket socket) Closes the socket quietly, catching rather than throwing IOException. |
long | copyReader(Reader source, Writer dest) Same as copyReader(source, dest, DEFAULT_COPY_BUFFER_SIZE); |
long | copyStream(InputStream source, OutputStream dest) Same as copyStream(source, dest, DEFAULT_COPY_BUFFER_SIZE); |
long | copyStream(InputStream source, OutputStream dest, int bufferSize, long streamSize, CopyStreamListener listener) Copies the contents of an InputStream to an OutputStream using a copy buffer of a given size and notifies the provided CopyStreamListener of the progress of the copy operation by calling its bytesTransferred(long, int) method after each write to the destination. |
long | copyStream(InputStream source, OutputStream dest, int bufferSize, long streamSize, CopyStreamListener listener, boolean flush) Copies the contents of an InputStream to an OutputStream using a copy buffer of a given size and notifies the provided CopyStreamListener of the progress of the copy operation by calling its bytesTransferred(long, int) method after each write to the destination. |