public class SeekableInputStreamWrapper extends Object implements Closeable, org.apache.avro.file.SeekableInput
The wrapper keeps track of the position in the data stream.
Constructor and Description |
---|
SeekableInputStreamWrapper(SeekableInputStream stream,
long len) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
length() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long p) |
long |
tell() |
public SeekableInputStreamWrapper(SeekableInputStream stream, long len)
public long length() throws IOException
length
in interface org.apache.avro.file.SeekableInput
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in interface org.apache.avro.file.SeekableInput
IOException
public void seek(long p) throws IOException
seek
in interface org.apache.avro.file.SeekableInput
IOException
public long tell() throws IOException
tell
in interface org.apache.avro.file.SeekableInput
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.