Class ByteSource
- java.lang.Object
-
- org.apache.commons.imaging.common.bytesource.ByteSource
-
- Direct Known Subclasses:
ByteSourceArray,ByteSourceFile,ByteSourceInputStream
public abstract class ByteSource extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteSource(String filename)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract byte[]getAll()byte[]getBlock(int start, int length)abstract byte[]getBlock(long start, int length)abstract StringgetDescription()StringgetFilename()abstract InputStreamgetInputStream()InputStreamgetInputStream(long start)abstract longgetLength()
-
-
-
Constructor Detail
-
ByteSource
public ByteSource(String filename)
-
-
Method Detail
-
getInputStream
public final InputStream getInputStream(long start) throws IOException
- Throws:
IOException
-
getInputStream
public abstract InputStream getInputStream() throws IOException
- Throws:
IOException
-
getBlock
public byte[] getBlock(int start, int length) throws IOException- Throws:
IOException
-
getBlock
public abstract byte[] getBlock(long start, int length) throws IOException- Throws:
IOException
-
getAll
public abstract byte[] getAll() throws IOException- Throws:
IOException
-
getLength
public abstract long getLength() throws IOException- Throws:
IOException
-
getDescription
public abstract String getDescription()
-
getFilename
public final String getFilename()
-
-