Class ByteSourceInputStream
- java.lang.Object
-
- org.apache.commons.imaging.common.bytesource.ByteSource
-
- org.apache.commons.imaging.common.bytesource.ByteSourceInputStream
-
public class ByteSourceInputStream extends ByteSource
-
-
Constructor Summary
Constructors Constructor Description ByteSourceInputStream(java.io.InputStream is, java.lang.String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getAll()byte[]getBlock(long blockStart, int blockLength)java.lang.StringgetDescription()java.io.InputStreamgetInputStream()longgetLength()-
Methods inherited from class org.apache.commons.imaging.common.bytesource.ByteSource
getBlock, getFilename, getInputStream
-
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin classByteSource- Throws:
java.io.IOException
-
getBlock
public byte[] getBlock(long blockStart, int blockLength) throws java.io.IOException- Specified by:
getBlockin classByteSource- Throws:
java.io.IOException
-
getLength
public long getLength() throws java.io.IOException- Specified by:
getLengthin classByteSource- Throws:
java.io.IOException
-
getAll
public byte[] getAll() throws java.io.IOException- Specified by:
getAllin classByteSource- Throws:
java.io.IOException
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classByteSource
-
-