Java org.apache.commons.net.io Util fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.io Util fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.io Util.

The text is from its open source code.

Field

intDEFAULT_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.

Method

voidcloseQuietly(Closeable closeable)
Closes the object quietly, catching rather than throwing IOException.
voidcloseQuietly(Socket socket)
Closes the socket quietly, catching rather than throwing IOException.
longcopyReader(Reader source, Writer dest)
Same as copyReader(source, dest, DEFAULT_COPY_BUFFER_SIZE);
longcopyStream(InputStream source, OutputStream dest)
Same as copyStream(source, dest, DEFAULT_COPY_BUFFER_SIZE);
longcopyStream(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.
longcopyStream(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.