Class ByteSourceFile
java.lang.Object
org.apache.commons.imaging.common.bytesource.ByteSource
org.apache.commons.imaging.common.bytesource.ByteSourceFile
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.imaging.common.bytesource.ByteSource
getBlock, getFileName, getInputStream
-
Field Details
-
file
-
-
Constructor Details
-
ByteSourceFile
-
-
Method Details
-
getInputStream
- Specified by:
getInputStreamin classByteSource- Throws:
IOException
-
getBlock
- Specified by:
getBlockin classByteSource- Throws:
IOException
-
getLength
public long getLength()Description copied from class:ByteSourceThis operation can be VERY expensive; for inputstream byte sources, the entire stream must be drained to determine its length.- Specified by:
getLengthin classByteSource- Returns:
- the byte source length
-
getAll
- Specified by:
getAllin classByteSource- Throws:
IOException
-
getDescription
- Specified by:
getDescriptionin classByteSource
-