Class ByteSourceArray
- java.lang.Object
-
- org.apache.commons.imaging.common.bytesource.ByteSource
-
- org.apache.commons.imaging.common.bytesource.ByteSourceArray
-
public class ByteSourceArray extends ByteSource
-
-
Constructor Summary
Constructors Constructor Description ByteSourceArray(byte[] bytes)
ByteSourceArray(java.lang.String filename, byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getAll()
byte[]
getBlock(long startLong, int length)
java.lang.String
getDescription()
java.io.InputStream
getInputStream()
long
getLength()
-
Methods inherited from class org.apache.commons.imaging.common.bytesource.ByteSource
getBlock, getFilename, getInputStream
-
-
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStream
in classByteSource
-
getBlock
public byte[] getBlock(long startLong, int length) throws java.io.IOException
- Specified by:
getBlock
in classByteSource
- Throws:
java.io.IOException
-
getLength
public long getLength()
- Specified by:
getLength
in classByteSource
-
getAll
public byte[] getAll() throws java.io.IOException
- Specified by:
getAll
in classByteSource
- Throws:
java.io.IOException
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in classByteSource
-
-