java.lang.Object | +--org.apache.commons.net.io.Util
CopyStreamException
CopyStreamListener
CopyStreamAdapter
static int | The default buffer size used by copyStream and copyReader . |
static long | copyReader(Reader source, Writer dest, int bufferSize, long streamSize, CopyStreamListener listener) Copies the contents of a Reader to a Writer 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. |
static long | copyReader(Reader source, Writer dest, int bufferSize) Copies the contents of a Reader to a Writer using a copy buffer of a given size. |
static long | copyReader(Reader source, Writer dest) Same as copyReader(source, dest, DEFAULT_COPY_BUFFER_SIZE); |
static 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. |
static long | copyStream(InputStream source, OutputStream dest, int bufferSize) Copies the contents of an InputStream to an OutputStream using a copy buffer of a given size. |
static long | copyStream(InputStream source, OutputStream dest) Same as copyStream(source, dest, DEFAULT_COPY_BUFFER_SIZE); |
public static final int DEFAULT_COPY_BUFFER_SIZE
public static final long copyReader(Reader source, Writer dest)
copyReader(source, dest, DEFAULT_COPY_BUFFER_SIZE);
public static final long copyReader(Reader source, Writer dest, int bufferSize)
CopyStreamException - If an error occurs while reading from the
source or writing to the destination.public static final long copyReader(Reader source, Writer dest, int bufferSize, long streamSize, CopyStreamListener listener)
CopyStreamException - If an error occurs while reading from the
source or writing to the destination.public static final long copyStream(InputStream source, OutputStream dest)
copyStream(source, dest, DEFAULT_COPY_BUFFER_SIZE);
public static final long copyStream(InputStream source, OutputStream dest, int bufferSize)
CopyStreamException - If an error occurs while reading from the
source or writing to the destination.public static final long copyStream(InputStream source, OutputStream dest, int bufferSize, long streamSize, CopyStreamListener listener)
CopyStreamException - If an error occurs while reading from the
source or writing to the destination.