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