| Modifier and Type | Field and Description |
|---|---|
| public static final int | DEFAULT_BUFFER_SIZE
Default buffer size for use in
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: Unmodified file name, if valid.The file name to check fileName)Checks, whether the given file name is valid in the sense, that it doesn't contain any NUL characters. |
| public static long | Returns: Number of bytes, which have been copied.The input stream, which is being read.
It is guaranteed, that inputStream, final OutputStream InputStream#close() is called
on the stream.The output stream, to which data should
be written. May be null, in which case the input streams
contents are simply discarded. outputStream, final boolean True guarantees, that closeOutputStream)OutputStream#close()
is called on the stream. False indicates, that only
OutputStream#flush() should be called finally.Copies the contents of the given |
| public static long | Returns: Number of bytes, which have been copied.The input stream, which is being read.
It is guaranteed, that inputStream, final OutputStream InputStream#close() is called
on the stream.The output stream, to which data should
be written. May be null, in which case the input streams
contents are simply discarded. outputStream, final boolean True guarantees, that closeOutputStream, final byte[] OutputStream#close()
is called on the stream. False indicates, that only
OutputStream#flush() should be called finally.Temporary buffer, which is to be used for
copying data. buffer)Copies the contents of the given |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_BUFFER_SIZE Default buffer size for use in
| |
| Streams | back to summary |
|---|---|
| private Streams() Private constructor, to prevent instantiation. This class has only static methods. | |
| checkFileName | back to summary |
|---|---|
| public static String checkFileName(final String fileName) Checks, whether the given file name is valid in the sense,
that it doesn't contain any NUL characters. If the file name
is valid, it will be returned without any modifications. Otherwise,
an
| |
| copy | back to summary |
|---|---|
| public static long copy(final InputStream inputStream, final OutputStream outputStream, final boolean closeOutputStream) throws IOException Copies the contents of the given copy(pInputStream, pOutputStream, new byte[8192]);
| |
| copy | back to summary |
|---|---|
| public static long copy(final InputStream inputStream, final OutputStream outputStream, final boolean closeOutputStream, final byte[] buffer) throws IOException Copies the contents of the given
| |