public class SeekableByteArrayInput extends ByteArrayInputStream implements SeekableInput
SeekableInput backed with data in a byte array.buf, count, mark, pos| Constructor and Description |
|---|
SeekableByteArrayInput(byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
long |
length()
Return the length of the file.
|
void |
seek(long p)
Set the position for the next
read(). |
long |
tell()
Return the position of the next
read(). |
available, close, mark, markSupported, read, read, reset, skipreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadpublic long length()
throws IOException
SeekableInputlength in interface SeekableInputIOExceptionpublic void seek(long p)
throws IOException
SeekableInputread().seek in interface SeekableInputIOExceptionpublic long tell()
throws IOException
SeekableInputread().tell in interface SeekableInputIOExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.