Package org.eclipse.mat.parser.io
Class SimpleBufferedRandomAccessInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.eclipse.mat.parser.io.SimpleBufferedRandomAccessInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class SimpleBufferedRandomAccessInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description SimpleBufferedRandomAccessInputStream(RandomAccessFile in)SimpleBufferedRandomAccessInputStream(RandomAccessFile in, int bufsize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetFilePointer()booleanmarkSupported()intread()intread(byte[] b, int off, int len)intreadInt()intreadIntArray(int[] a)longreadLong()intreadLongArray(long[] a)voidseek(long pos)-
Methods inherited from class java.io.InputStream
available, mark, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
SimpleBufferedRandomAccessInputStream
public SimpleBufferedRandomAccessInputStream(RandomAccessFile in) throws IOException
- Throws:
IOException
-
SimpleBufferedRandomAccessInputStream
public SimpleBufferedRandomAccessInputStream(RandomAccessFile in, int bufsize) throws IOException
- Throws:
IOException
-
-
Method Detail
-
read
public final int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classInputStream
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
seek
public void seek(long pos) throws IOException- Throws:
IOException
-
getFilePointer
public long getFilePointer()
-
readInt
public final int readInt() throws IOException- Throws:
IOException
-
readLong
public final long readLong() throws IOException- Throws:
IOException
-
readIntArray
public int readIntArray(int[] a) throws IOException- Throws:
IOException
-
readLongArray
public int readLongArray(long[] a) throws IOException- Throws:
IOException
-
-