APIdia Launch Partner
Top Fields Constructors Methods
com.sun.tools.jdi

pack-priv Class PacketStream

extends Object
Class Inheritance
Imports
java.io.ByteArrayOutputStream, java.util.ArrayList, .List, com.sun.jdi.BooleanValue, .ByteValue, .CharValue, .ClassType, .DoubleValue, .Field, .FloatValue, .IntegerValue, .InterfaceType, .InternalException, .InvalidTypeException, .Location, .LongValue, .ObjectReference, .PrimitiveValue, .ShortValue, .Value

Field Summary

Modifier and TypeField and Description
private ByteArrayOutputStream
private int
private boolean
pack-priv final Packet
pack-priv final VirtualMachineImpl

Constructor Summary

AccessConstructor and Description
pack-priv
PacketStream(VirtualMachineImpl vm, int cmdSet, int cmd)

pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv byte
pack-priv int
id()

pack-priv static boolean
isObjectTag(byte tag)

pack-priv ArrayReferenceImpl
pack-priv List<Value>
pack-priv boolean
readBoolean()

Read boolean represented as one byte.

pack-priv byte
readByte()

Read byte represented as one bytes.

pack-priv byte[]
readByteArray(int length)

pack-priv char
readChar()

Read char represented as two bytes.

pack-priv ClassLoaderReferenceImpl
pack-priv ClassObjectReferenceImpl
pack-priv long
pack-priv double
readDouble()

Read double represented as eight bytes.

pack-priv Field
readField()

Read field represented as vm specific byte sequence.

pack-priv long
readFieldRef()

Read field reference represented as vm specific byte sequence.

pack-priv float
readFloat()

Read float represented as four bytes.

pack-priv long
readFrameRef()

Read frame represented as vm specific byte sequence.

private long
readID(int size)

pack-priv int
readInt()

Read int represented as four bytes.

pack-priv Location
readLocation()

Read location represented as vm specific byte sequence.

pack-priv long
readLong()

Read long represented as eight bytes.

pack-priv long
readMethodRef()

Read method reference represented as vm specific byte sequence.

pack-priv ModuleReferenceImpl
pack-priv long
readModuleRef()

Read module reference represented as vm specific byte sequence.

pack-priv long
readObjectRef()

Read object represented as vm specific byte sequence.

pack-priv ObjectReferenceImpl
pack-priv ReferenceTypeImpl
pack-priv short
readShort()

Read short represented as two bytes.

pack-priv String
readString()

Read string represented as four byte length followed by characters of the string.

pack-priv StringReferenceImpl
pack-priv ObjectReferenceImpl
pack-priv ThreadGroupReferenceImpl
pack-priv ThreadReferenceImpl
pack-priv ValueImpl
readUntaggedValue(byte typeKey)

pack-priv ValueImpl
readValue()

Read a value, first byte describes type of value to read.

pack-priv void
send()

pack-priv int
skipBytes(int n)

pack-priv void
pack-priv void
pack-priv void
writeBoolean(boolean data)

pack-priv void
writeByte(byte data)

pack-priv void
writeByteArray(byte[] data)

pack-priv void
writeChar(char data)

pack-priv void
writeClassRef(long data)

pack-priv void
writeDouble(double data)

pack-priv void
writeFieldRef(long data)

pack-priv void
writeFloat(float data)

pack-priv void
writeFrameRef(long data)

pack-priv void
writeID(int size, long data)

pack-priv void
writeInt(int data)

pack-priv void
pack-priv void
writeLong(long data)

pack-priv void
writeMethodRef(long data)

pack-priv void
writeModuleRef(long data)

pack-priv void
pack-priv void
writeObjectRef(long data)

pack-priv void
writeShort(short data)

pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dataStreamback to summary
private ByteArrayOutputStream dataStream
inCursorback to summary
private int inCursor
isCommittedback to summary
private boolean isCommitted
pktback to summary
pack-priv final Packet pkt
vmback to summary
pack-priv final VirtualMachineImpl vm

Constructor Detail

PacketStreamback to summary
pack-priv PacketStream(VirtualMachineImpl vm, int cmdSet, int cmd)
PacketStreamback to summary
pack-priv PacketStream(VirtualMachineImpl vm, Packet pkt)

Method Detail

commandback to summary
pack-priv byte command()
idback to summary
pack-priv int id()
isObjectTagback to summary
pack-priv static boolean isObjectTag(byte tag)
readArrayReferenceback to summary
pack-priv ArrayReferenceImpl readArrayReference()
readArrayRegionback to summary
pack-priv List<Value> readArrayRegion()
readBooleanback to summary
pack-priv boolean readBoolean()

Read boolean represented as one byte.

readByteback to summary
pack-priv byte readByte()

Read byte represented as one bytes.

readByteArrayback to summary
pack-priv byte[] readByteArray(int length)
readCharback to summary
pack-priv char readChar()

Read char represented as two bytes.

readClassLoaderReferenceback to summary
pack-priv ClassLoaderReferenceImpl readClassLoaderReference()
readClassObjectReferenceback to summary
pack-priv ClassObjectReferenceImpl readClassObjectReference()
readClassRefback to summary
pack-priv long readClassRef()
readDoubleback to summary
pack-priv double readDouble()

Read double represented as eight bytes.

readFieldback to summary
pack-priv Field readField()

Read field represented as vm specific byte sequence.

readFieldRefback to summary
pack-priv long readFieldRef()

Read field reference represented as vm specific byte sequence.

readFloatback to summary
pack-priv float readFloat()

Read float represented as four bytes.

readFrameRefback to summary
pack-priv long readFrameRef()

Read frame represented as vm specific byte sequence.

readIDback to summary
private long readID(int size)
readIntback to summary
pack-priv int readInt()

Read int represented as four bytes.

readLocationback to summary
pack-priv Location readLocation()

Read location represented as vm specific byte sequence.

readLongback to summary
pack-priv long readLong()

Read long represented as eight bytes.

readMethodRefback to summary
pack-priv long readMethodRef()

Read method reference represented as vm specific byte sequence.

readModuleback to summary
pack-priv ModuleReferenceImpl readModule()
readModuleRefback to summary
pack-priv long readModuleRef()

Read module reference represented as vm specific byte sequence.

readObjectRefback to summary
pack-priv long readObjectRef()

Read object represented as vm specific byte sequence.

readObjectReferenceback to summary
pack-priv ObjectReferenceImpl readObjectReference()
readReferenceTypeback to summary
pack-priv ReferenceTypeImpl readReferenceType()
readShortback to summary
pack-priv short readShort()

Read short represented as two bytes.

readStringback to summary
pack-priv String readString()

Read string represented as four byte length followed by characters of the string.

readStringReferenceback to summary
pack-priv StringReferenceImpl readStringReference()
readTaggedObjectReferenceback to summary
pack-priv ObjectReferenceImpl readTaggedObjectReference()
readThreadGroupReferenceback to summary
pack-priv ThreadGroupReferenceImpl readThreadGroupReference()
readThreadReferenceback to summary
pack-priv ThreadReferenceImpl readThreadReference()
readUntaggedValueback to summary
pack-priv ValueImpl readUntaggedValue(byte typeKey)
readValueback to summary
pack-priv ValueImpl readValue()

Read a value, first byte describes type of value to read.

sendback to summary
pack-priv void send()
skipBytesback to summary
pack-priv int skipBytes(int n)
waitForReplyback to summary
pack-priv void waitForReply() throws JDWPException
writeArrayRegionback to summary
pack-priv void writeArrayRegion(List<Value> srcValues)
writeBooleanback to summary
pack-priv void writeBoolean(boolean data)
writeByteback to summary
pack-priv void writeByte(byte data)
writeByteArrayback to summary
pack-priv void writeByteArray(byte[] data)
writeCharback to summary
pack-priv void writeChar(char data)
writeClassRefback to summary
pack-priv void writeClassRef(long data)
writeDoubleback to summary
pack-priv void writeDouble(double data)
writeFieldRefback to summary
pack-priv void writeFieldRef(long data)
writeFloatback to summary
pack-priv void writeFloat(float data)
writeFrameRefback to summary
pack-priv void writeFrameRef(long data)
writeIDback to summary
pack-priv void writeID(int size, long data)
writeIntback to summary
pack-priv void writeInt(int data)
writeLocationback to summary
pack-priv void writeLocation(Location location)
writeLongback to summary
pack-priv void writeLong(long data)
writeMethodRefback to summary
pack-priv void writeMethodRef(long data)
writeModuleRefback to summary
pack-priv void writeModuleRef(long data)
writeNullObjectRefback to summary
pack-priv void writeNullObjectRef()
writeObjectRefback to summary
pack-priv void writeObjectRef(long data)
writeShortback to summary
pack-priv void writeShort(short data)
writeStringback to summary
pack-priv void writeString(String string)
writeUntaggedValueback to summary
pack-priv void writeUntaggedValue(Value val)
writeUntaggedValueCheckedback to summary
pack-priv void writeUntaggedValueChecked(Value val) throws InvalidTypeException
writeValueback to summary
pack-priv void writeValue(Value val)
writeValueCheckedback to summary
pack-priv void writeValueChecked(Value val) throws InvalidTypeException