public class OffheapInputStream extends SeekableInputStream
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream and releases any system resources associated with the stream.
|
long |
getFilePointer()
Returns the current offset in this file.
|
long |
length() |
int |
read() |
void |
readBytes(byte[] b,
int offset,
int len) |
void |
seek(long pos)
Sets the file-pointer offset, measured from the beginning of this file, at which the next read occurs.
|
String |
toString() |
available, mark, markSupported, read, read, reset, skippublic void close()
throws IOException
SeekableInputStreamCloses this stream and releases any system resources associated with the stream.
close in interface Closeableclose in interface AutoCloseableclose in class SeekableInputStreamIOException - if an I/O error occurs.public long length()
throws IOException
IOExceptionpublic int read()
throws IOException
SeekableInputStreamread in class SeekableInputStreamIOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws IOException
SeekableInputStreamreadBytes in class SeekableInputStreamIOExceptionpublic long getFilePointer()
throws IOException
SeekableInputStreamgetFilePointer in class SeekableInputStreamIOException - if an I/O error occurs.public void seek(long pos)
throws IOException,
EOFException
SeekableInputStreamseek in class SeekableInputStreampos - - the offset position, measured in bytes from the beginning of the file, at which to set the file
pointer.IOException - if pos is less than 0 or if an I/O error occurs.EOFException - if pos beyond end of fileCopyright © 2015–2024. All rights reserved.