Class StreamUtil
- java.lang.Object
-
- org.eclipse.ecf.remoteservice.util.StreamUtil
-
public class StreamUtil extends Object
- Since:
- 8.1
-
-
Constructor Summary
Constructors Constructor Description StreamUtil()
StreamUtil(int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
copy(InputStream input, OutputStream output)
byte[]
toByteArray(InputStream input)
void
writeByteArray(OutputStream outs, byte[] bytes)
-
-
-
Method Detail
-
copy
public long copy(InputStream input, OutputStream output) throws IOException
- Throws:
IOException
-
toByteArray
public byte[] toByteArray(InputStream input) throws IOException
- Throws:
IOException
-
writeByteArray
public void writeByteArray(OutputStream outs, byte[] bytes) throws IOException
- Throws:
IOException
-
-