public class ByteSourceInputStream extends ByteSource
| Constructor and Description |
|---|
ByteSourceInputStream(java.io.InputStream is,
java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAll() |
byte[] |
getBlock(long blockStart,
int blockLength) |
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 ByteSourceInputStream(java.io.InputStream is,
java.lang.String fileName)
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class ByteSourcejava.io.IOExceptionpublic byte[] getBlock(long blockStart,
int blockLength)
throws java.io.IOException
getBlock in class ByteSourcejava.io.IOExceptionpublic long getLength()
throws java.io.IOException
ByteSourcegetLength in class ByteSourcejava.io.IOException - if it fails to read the byte source datapublic 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