Package org.eclipse.mat.hprof
Class ByteArrayPositionInputStream
java.lang.Object
org.eclipse.mat.hprof.ByteArrayPositionInputStream
- All Implemented Interfaces:
Closeable
,DataInput
,AutoCloseable
,IPositionInputStream
public class ByteArrayPositionInputStream
extends Object
implements IPositionInputStream, Closeable, AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
mark
(int readLimit) boolean
long
position()
int
read()
int
read
(byte[] b, int off, int len) boolean
byte
readByte()
char
readChar()
double
float
void
readFully
(byte[] b) void
readFully
(byte[] b, int off, int len) long
readID
(int idSize) int
readInt()
readLine()
long
readLong()
short
int
long
int
readUTF()
void
reset()
void
seek
(long pos) long
skip
(long n) int
skipBytes
(int n) int
skipBytes
(long n)
-
Constructor Details
-
ByteArrayPositionInputStream
public ByteArrayPositionInputStream(byte[] bytes, int idSize)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceIPositionInputStream
- Throws:
IOException
-
read
public int read()- Specified by:
read
in interfaceIPositionInputStream
-
read
public int read(byte[] b, int off, int len) - Specified by:
read
in interfaceIPositionInputStream
-
skip
public long skip(long n) - Specified by:
skip
in interfaceIPositionInputStream
-
markSupported
public boolean markSupported()- Specified by:
markSupported
in interfaceIPositionInputStream
-
mark
public void mark(int readLimit) - Specified by:
mark
in interfaceIPositionInputStream
-
reset
public void reset()- Specified by:
reset
in interfaceIPositionInputStream
-
skipBytes
public int skipBytes(long n) - Specified by:
skipBytes
in interfaceIPositionInputStream
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Specified by:
readFully
in interfaceIPositionInputStream
- Throws:
EOFException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Specified by:
readFully
in interfaceIPositionInputStream
- Throws:
EOFException
-
position
public long position()- Specified by:
position
in interfaceIPositionInputStream
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Specified by:
readUnsignedByte
in interfaceIPositionInputStream
- Throws:
EOFException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Specified by:
readInt
in interfaceIPositionInputStream
- Throws:
EOFException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Specified by:
readLong
in interfaceIPositionInputStream
- Throws:
EOFException
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Specified by:
readBoolean
in interfaceIPositionInputStream
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Specified by:
readByte
in interfaceIPositionInputStream
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Specified by:
readChar
in interfaceIPositionInputStream
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Specified by:
readDouble
in interfaceIPositionInputStream
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Specified by:
readFloat
in interfaceIPositionInputStream
- Throws:
IOException
-
readLine
- Specified by:
readLine
in interfaceDataInput
- Specified by:
readLine
in interfaceIPositionInputStream
- Throws:
IOException
-
readShort
- Specified by:
readShort
in interfaceDataInput
- Specified by:
readShort
in interfaceIPositionInputStream
- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Specified by:
readUnsignedShort
in interfaceIPositionInputStream
- Throws:
IOException
-
readUnsignedInt
- Specified by:
readUnsignedInt
in interfaceIPositionInputStream
- Throws:
EOFException
-
skipBytes
public int skipBytes(int n) - Specified by:
skipBytes
in interfaceDataInput
- Specified by:
skipBytes
in interfaceIPositionInputStream
-
seek
- Specified by:
seek
in interfaceIPositionInputStream
- Throws:
IOException
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Specified by:
readUTF
in interfaceIPositionInputStream
-
readID
- Specified by:
readID
in interfaceIPositionInputStream
- Throws:
IOException
-