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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
boolean
final int
read()
int
read
(byte[] b, int off, int len) final int
readInt()
int
readIntArray
(int[] a) final long
readLong()
int
readLongArray
(long[] a) void
seek
(long pos) Methods inherited from class java.io.InputStream
available, mark, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
SimpleBufferedRandomAccessInputStream
- Throws:
IOException
-
SimpleBufferedRandomAccessInputStream
- Throws:
IOException
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
seek
- Throws:
IOException
-
getFilePointer
public long getFilePointer() -
readInt
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readIntArray
- Throws:
IOException
-
readLongArray
- Throws:
IOException
-