public interface ReadFromSupport
long readFrom(InputStream inputStream, long length) throws StreamCopyException
lengthargument is different from
-1and the number of bytes transferred is equal to
inputStream- An input stream to read data from. This method will not close the stream.
length- the number of bytes to transfer, or
-1if the method should transfer data until the end of the input stream is reached
Copyright ? The Apache Software Foundation. All Rights Reserved.