Class ByteSourceFile
java.lang.Object
org.apache.commons.imaging.common.bytesource.ByteSource
org.apache.commons.imaging.common.bytesource.ByteSourceFile
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.commons.imaging.common.bytesource.ByteSource
getBlock, getFileName, getInputStream
-
Constructor Details
-
ByteSourceFile
-
-
Method Details
-
getInputStream
- Specified by:
getInputStream
in classByteSource
- Throws:
IOException
-
getBlock
- Specified by:
getBlock
in classByteSource
- Throws:
IOException
-
getLength
Description copied from class:ByteSource
This operation can be VERY expensive; for inputstream byte sources, the entire stream must be drained to determine its length.- Specified by:
getLength
in classByteSource
- Returns:
- the byte source length
-
getAll
- Specified by:
getAll
in classByteSource
- Throws:
IOException
-
getDescription
- Specified by:
getDescription
in classByteSource
-