public interface SeekableInput extends Closeable
Modifier and Type | Method and Description |
---|---|
long |
length()
Return the length of the file.
|
int |
read(byte[] b,
int off,
int len)
Equivalent to
InputStream.read(byte[],int,int) . |
void |
seek(long p)
Set the position for the next
read() . |
long |
tell()
Return the position of the next
read() . |
void seek(long p) throws IOException
read()
.IOException
long tell() throws IOException
read()
.IOException
long length() throws IOException
IOException
int read(byte[] b, int off, int len) throws IOException
InputStream.read(byte[],int,int)
.IOException
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.