Class ByteSource
java.lang.Object
org.apache.commons.imaging.bytesource.ByteSource
- 
Method SummaryModifier and TypeMethodDescriptionstatic ByteSourcearray(byte[] array) static ByteSourcestatic ByteSourcebyte[]getByteArray(long position, int length) final Stringstatic final InputStreamgetInputStream(ByteSource byteSource, long skip) static ByteSourceinputStream(InputStream is, String name) static ByteSourcelongsize()This operation can be VERY expensive; for InputStream byte sources, the entire stream must be drained to determine its length.toString()
- 
Method Details- 
array
- 
array
- 
file
- 
getInputStream- Throws:
- IOException
 
- 
inputStream- Throws:
- IOException
 
- 
path
- 
getByteArray- Throws:
- IOException
 
- 
getFileName
- 
getInputStream- Throws:
- IOException
 
- 
sizeThis operation can be VERY expensive; for InputStream byte sources, the entire stream must be drained to determine its length.- Returns:
- the byte source length
- Throws:
- IOException- if it fails to read the byte source data
 
- 
toString
 
-