APIdia Launch Partner
Top Fields Constructors Methods
sun.jvm.hotspot.code

public Class CompressedReadStream

extends CompressedStream
Class Inheritance
Known Direct Subclasses
sun.jvm.hotspot.code.DebugInfoReadStream, sun.jvm.hotspot.oops.CompressedLineNumberReadStream
Imports
java.io.PrintStream, sun.jvm.hotspot.debugger.*, sun.jvm.hotspot.utilities.*

Field Summary

Inherited from sun.jvm.hotspot.code.CompressedStream:
BitsPerBytebufferLogBitsPerByteposition

Constructor Summary

AccessConstructor and Description
public
CompressedReadStream(Address buffer)

Equivalent to CompressedReadStream(buffer, 0)

public
CompressedReadStream(Address buffer, int position)

Method Summary

Modifier and TypeMethod and Description
public void
dump()

Dumps the stream, making an assumption that all items are encoded as UNSIGNED5.

public void
dump(int sizeLimit)

public void
dumpOn(PrintStream tty, int sizeLimit)

private short
read(int index)

private short
read()

Reads an unsigned byte, but returns it as a short

public boolean
public byte
public char
public double
public float
public int
public long
public short
public int
Inherited from sun.jvm.hotspot.code.CompressedStream:
decodeSignencodeSigngetBuffergetPositionreverseIntsetPosition

Constructor Detail

CompressedReadStreamback to summary
public CompressedReadStream(Address buffer)

Equivalent to CompressedReadStream(buffer, 0)

CompressedReadStreamback to summary
public CompressedReadStream(Address buffer, int position)

Method Detail

dumpback to summary
public void dump()

Dumps the stream, making an assumption that all items are encoded as UNSIGNED5. The sizeLimit argument tells the dumper when to stop trying to read bytes; if it is zero, the dumper goes as long as it can until it encounters a null byte. This class mixes UNSIGNED5 with other formats. Stray bytes are decoded either as "null" (0x00), one less than the byte value (0x01..0xBF) or as part of a spurious multi-byte encoding. Proceed with caution.

dumpback to summary
public void dump(int sizeLimit)
dumpOnback to summary
public void dumpOn(PrintStream tty, int sizeLimit)
readback to summary
private short read(int index)
readback to summary
private short read()

Reads an unsigned byte, but returns it as a short

readBooleanback to summary
public boolean readBoolean()
readByteback to summary
public byte readByte()
readCharback to summary
public char readChar()
readDoubleback to summary
public double readDouble()
readFloatback to summary
public float readFloat()
readIntback to summary
public int readInt()
readLongback to summary
public long readLong()
readShortback to summary
public short readShort()
readSignedIntback to summary
public int readSignedInt()