| java.lang.Object org.columba.core.io.StreamUtils
StreamUtils | public class StreamUtils (Code) | | Contains utility methods for handling streams.
|
streamClone | public static InputStream streamClone(InputStream from) throws IOException(Code) | | Copies all bytes from the given InputStream into an internal
ByteArrayOutputStream and returnes a new InputStream with all bytes from
the ByteArrayOutputStream. The data are real copied so this method
"clones" the given Inputstream and returns a new InputStream with same
data.
Parameters: from - InputStream from which all data are to copy a new InputStream with all data from the given InputStream throws: IOException - |
streamCopy | public static int streamCopy(InputStream in, OutputStream out, int length) throws IOException(Code) | | Copies length bytes from an InputStream to an OutputStream.
Parameters: in - InputStream from wihch the bytes are to copied. Parameters: out - OutputStream in which the bytes are copied. Parameters: length - The number of bytes to copy Number of bytes which are copied. throws: IOException - If the streams are unavailable. |
streamCopy | public static long streamCopy(InputStream in, OutputStream out) throws IOException(Code) | | Copies all bytes from an InputStream to an OutputStream. The buffer size
is set to 8000 bytes.
Parameters: _isInput - InputStream from wihch the bytes are to copied. Parameters: _osOutput - OutputStream in which the bytes are copied. Number of bytes which are copied. throws: IOException - If the Streams are unavailable. |
|
|