Package org.eclipse.mat.hprof
Class BufferingRafPositionInputStream
- java.lang.Object
-
- org.eclipse.mat.hprof.BufferingRafPositionInputStream
-
- All Implemented Interfaces:
Closeable,DataInput,AutoCloseable,IPositionInputStream
public class BufferingRafPositionInputStream extends Object implements IPositionInputStream, Closeable, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description BufferingRafPositionInputStream(File file, String prefix, long offset, int readLength, long estlen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidmark(int readLimit)booleanmarkSupported()longposition()intread()intread(byte[] b, int off, int len)booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()floatreadFloat()voidreadFully(byte[] b)voidreadFully(byte[] b, int off, int len)longreadID(int idSize)intreadInt()StringreadLine()longreadLong()shortreadShort()intreadUnsignedByte()longreadUnsignedInt()intreadUnsignedShort()StringreadUTF()voidreset()voidseek(long pos)longskip(long n)intskipBytes(int n)intskipBytes(long n)longworkPosition()
-
-
-
Constructor Detail
-
BufferingRafPositionInputStream
public BufferingRafPositionInputStream(File file, String prefix, long offset, int readLength, long estlen) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceIPositionInputStream- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin interfaceIPositionInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Specified by:
readin interfaceIPositionInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Specified by:
skipin interfaceIPositionInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()
- Specified by:
markSupportedin interfaceIPositionInputStream
-
mark
public void mark(int readLimit)
- Specified by:
markin interfaceIPositionInputStream
-
reset
public void reset()
- Specified by:
resetin interfaceIPositionInputStream
-
skipBytes
public int skipBytes(long n) throws IOException- Specified by:
skipBytesin interfaceIPositionInputStream- Throws:
IOException
-
readFully
public void readFully(byte[] b) throws IOException- Specified by:
readFullyin interfaceDataInput- Specified by:
readFullyin interfaceIPositionInputStream- Throws:
IOException
-
readFully
public void readFully(byte[] b, int off, int len) throws IOException- Specified by:
readFullyin interfaceDataInput- Specified by:
readFullyin interfaceIPositionInputStream- Throws:
IOException
-
position
public long position()
- Specified by:
positionin interfaceIPositionInputStream
-
workPosition
public long workPosition()
-
readUnsignedByte
public int readUnsignedByte() throws IOException- Specified by:
readUnsignedBytein interfaceDataInput- Specified by:
readUnsignedBytein interfaceIPositionInputStream- Throws:
IOException
-
readInt
public int readInt() throws IOException- Specified by:
readIntin interfaceDataInput- Specified by:
readIntin interfaceIPositionInputStream- Throws:
IOException
-
readLong
public long readLong() throws IOException- Specified by:
readLongin interfaceDataInput- Specified by:
readLongin interfaceIPositionInputStream- Throws:
IOException
-
readBoolean
public boolean readBoolean() throws IOException- Specified by:
readBooleanin interfaceDataInput- Specified by:
readBooleanin interfaceIPositionInputStream- Throws:
IOException
-
readByte
public byte readByte() throws IOException- Specified by:
readBytein interfaceDataInput- Specified by:
readBytein interfaceIPositionInputStream- Throws:
IOException
-
readChar
public char readChar() throws IOException- Specified by:
readCharin interfaceDataInput- Specified by:
readCharin interfaceIPositionInputStream- Throws:
IOException
-
readDouble
public double readDouble() throws IOException- Specified by:
readDoublein interfaceDataInput- Specified by:
readDoublein interfaceIPositionInputStream- Throws:
IOException
-
readFloat
public float readFloat() throws IOException- Specified by:
readFloatin interfaceDataInput- Specified by:
readFloatin interfaceIPositionInputStream- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Specified by:
readLinein interfaceDataInput- Specified by:
readLinein interfaceIPositionInputStream- Throws:
IOException
-
readShort
public short readShort() throws IOException- Specified by:
readShortin interfaceDataInput- Specified by:
readShortin interfaceIPositionInputStream- Throws:
IOException
-
readUnsignedShort
public int readUnsignedShort() throws IOException- Specified by:
readUnsignedShortin interfaceDataInput- Specified by:
readUnsignedShortin interfaceIPositionInputStream- Throws:
IOException
-
readUnsignedInt
public long readUnsignedInt() throws IOException- Specified by:
readUnsignedIntin interfaceIPositionInputStream- Throws:
IOException
-
skipBytes
public int skipBytes(int n) throws IOException- Specified by:
skipBytesin interfaceDataInput- Specified by:
skipBytesin interfaceIPositionInputStream- Throws:
IOException
-
seek
public void seek(long pos) throws IOException- Specified by:
seekin interfaceIPositionInputStream- Throws:
IOException
-
readUTF
public String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Specified by:
readUTFin interfaceIPositionInputStream- Throws:
IOException
-
readID
public long readID(int idSize) throws IOException- Specified by:
readIDin interfaceIPositionInputStream- Throws:
IOException
-
-