public class ByteSourceArray extends ByteSource
| Constructor and Description |
|---|
ByteSourceArray(byte[] bytes) |
ByteSourceArray(java.lang.String fileName,
byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAll() |
byte[] |
getBlock(long startLong,
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 ByteSourceArray(java.lang.String fileName,
byte[] bytes)
public ByteSourceArray(byte[] bytes)
public java.io.InputStream getInputStream()
getInputStream in class ByteSourcepublic byte[] getBlock(long startLong,
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