public class ByteSourceFile extends ByteSource
| Constructor and Description |
|---|
ByteSourceFile(java.io.File file) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAll() |
byte[] |
getBlock(long start,
int length) |
java.lang.String |
getDescription() |
java.io.InputStream |
getInputStream() |
long |
getLength()
This operation can be VERY expensive; for inputstream byte sources, the
entire stream must be drained to determine its length.
|
getBlock, getFileName, getInputStreampublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class ByteSourcejava.io.IOExceptionpublic byte[] getBlock(long start,
int length)
throws java.io.IOException
getBlock in class ByteSourcejava.io.IOExceptionpublic long getLength()
ByteSourcegetLength in class ByteSourcepublic byte[] getAll()
throws java.io.IOException
getAll in class ByteSourcejava.io.IOExceptionpublic java.lang.String getDescription()
getDescription in class ByteSourceCopyright © 2010 - 2023 Adobe. All Rights Reserved