Class ByteSource
- java.lang.Object
-
- org.apache.commons.imaging.common.bytesource.ByteSource
-
- Direct Known Subclasses:
ByteSourceArray
,ByteSourceFile
,ByteSourceInputStream
public abstract class ByteSource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ByteSource(java.lang.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 java.lang.String
getDescription()
java.lang.String
getFilename()
abstract java.io.InputStream
getInputStream()
java.io.InputStream
getInputStream(long start)
abstract long
getLength()
-
-
-
Method Detail
-
getInputStream
public final java.io.InputStream getInputStream(long start) throws java.io.IOException
- Throws:
java.io.IOException
-
getInputStream
public abstract java.io.InputStream getInputStream() throws java.io.IOException
- Throws:
java.io.IOException
-
getBlock
public byte[] getBlock(int start, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
getBlock
public abstract byte[] getBlock(long start, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
getAll
public abstract byte[] getAll() throws java.io.IOException
- Throws:
java.io.IOException
-
getLength
public abstract long getLength() throws java.io.IOException
- Throws:
java.io.IOException
-
getDescription
public abstract java.lang.String getDescription()
-
getFilename
public final java.lang.String getFilename()
-
-