org.eclipse.ecf.remoteservice.util
Class StreamUtil

java.lang.Object
  extended by org.eclipse.ecf.remoteservice.util.StreamUtil

public class StreamUtil
extends java.lang.Object

Since:
8.1

Constructor Summary
StreamUtil()
           
StreamUtil(int bufferSize)
           
 
Method Summary
 long copy(java.io.InputStream input, java.io.OutputStream output)
           
 byte[] toByteArray(java.io.InputStream input)
           
 void writeByteArray(java.io.OutputStream outs, byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamUtil

public StreamUtil(int bufferSize)

StreamUtil

public StreamUtil()
Method Detail

copy

public long copy(java.io.InputStream input,
                 java.io.OutputStream output)
          throws java.io.IOException
Throws:
java.io.IOException

toByteArray

public byte[] toByteArray(java.io.InputStream input)
                   throws java.io.IOException
Throws:
java.io.IOException

writeByteArray

public void writeByteArray(java.io.OutputStream outs,
                           byte[] bytes)
                    throws java.io.IOException
Throws:
java.io.IOException