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, skip
read
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read
public long length() throws IOException
SeekableInput
length
in interface SeekableInput
IOException
public void seek(long p) throws IOException
SeekableInput
read()
.seek
in interface SeekableInput
IOException
public long tell() throws IOException
SeekableInput
read()
.tell
in interface SeekableInput
IOException
Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.