Package org.eclipse.mat.parser.io
Class SimpleBufferedRandomAccessInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.eclipse.mat.parser.io.SimpleBufferedRandomAccessInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class SimpleBufferedRandomAccessInputStream extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description SimpleBufferedRandomAccessInputStream(java.io.RandomAccessFile in)
SimpleBufferedRandomAccessInputStream(java.io.RandomAccessFile in, int bufsize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getFilePointer()
boolean
markSupported()
int
read()
int
read(byte[] b, int off, int len)
int
readInt()
int
readIntArray(int[] a)
long
readLong()
int
readLongArray(long[] a)
void
seek(long pos)
-
-
-
Constructor Detail
-
SimpleBufferedRandomAccessInputStream
public SimpleBufferedRandomAccessInputStream(java.io.RandomAccessFile in) throws java.io.IOException
- Throws:
java.io.IOException
-
SimpleBufferedRandomAccessInputStream
public SimpleBufferedRandomAccessInputStream(java.io.RandomAccessFile in, int bufsize) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
read
public final int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classjava.io.InputStream
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
seek
public void seek(long pos) throws java.io.IOException
- Throws:
java.io.IOException
-
getFilePointer
public long getFilePointer()
-
readInt
public final int readInt() throws java.io.IOException
- Throws:
java.io.IOException
-
readLong
public final long readLong() throws java.io.IOException
- Throws:
java.io.IOException
-
readIntArray
public int readIntArray(int[] a) throws java.io.IOException
- Throws:
java.io.IOException
-
readLongArray
public int readLongArray(long[] a) throws java.io.IOException
- Throws:
java.io.IOException
-
-