|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.squawk.debugger.PacketOutputStream
public final class PacketOutputStream
A PacketOutputStream is used to write data to the data part of a Packet
.
Constructor Summary | |
---|---|
PacketOutputStream(DataOutputStream dis)
|
Method Summary | |
---|---|
void |
close(String s)
Closes this stream and its underlying stream. |
void |
copyTaggedValue(PacketInputStream in)
Copy a tagged value (primitive or object) from the input stream to the output stream. |
void |
copyValue(int tag,
PacketInputStream in)
Copy a value (primitive or object) from the input stream to the output stream. |
void |
writeBoolean(boolean value,
String s)
Writes a boolean value to this stream. |
void |
writeByte(int value,
String s)
Writes one byte to this stream. |
void |
writeChar(char value,
String s)
Writes a char value to this stream. |
void |
writeDouble(double value,
String s)
Writes a double value to this stream. |
void |
writeFieldID(DataType.FieldID value,
String s)
|
void |
writeFloat(float value,
String s)
Writes a float value to this stream. |
void |
writeFrameID(DataType.FrameID value,
String s)
|
void |
writeInt(int value,
String s)
Writes an int value to this stream. |
void |
writeLocation(DataType.Location value,
String s)
|
void |
writeLong(long value,
String s)
Writes a long value to this stream. |
void |
writeMethodID(DataType.MethodID value,
String s)
|
void |
writeNullLocation(String s)
|
void |
writeObjectID(DataType.ObjectID value,
String s)
|
void |
writePrimitive(byte tag,
long value,
String s)
Writes a primitive value to this stream preceeded by a tag describing the type and data size (in bytes) of the value. |
void |
writeReferenceTypeID(DataType.ReferenceTypeID value,
String s)
|
void |
writeShort(short value,
String s)
Writes a short value to this stream. |
void |
writeString(String value,
String s)
Writes a string to the underlying output stream using UTF-8 encoding in a machine-independent manner. |
void |
writeTaggedObjectID(DataType.TaggedObjectID value,
String s)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PacketOutputStream(DataOutputStream dis)
Method Detail |
---|
public void writeByte(int value, String s) throws IOException
value
- a byte
value to be written.s
- prefix to use if this write is logged. A value of null prevents logging altogether.
IOException
- if there was an IO error while writingpublic void writeBoolean(boolean value, String s) throws IOException
value
- a boolean
value to be written.s
- prefix to use if this write is logged. A value of null prevents logging altogether.
IOException
- if there was an IO error while writingpublic void writeChar(char value, String s) throws IOException
value
- a char
value to be written.s
- prefix to use if this write is logged. A value of null prevents logging altogether.
IOException
- if there was an IO error while writingpublic void writeShort(short value, String s) throws IOException
value
- a short
value to be written.s
- prefix to use if this write is logged. A value of null prevents logging altogether.
IOException
- if there was an IO error while writingpublic void writeInt(int value, String s) throws IOException
value
- an int
value to be written.s
- prefix to use if this write is logged. A value of null prevents logging altogether.
IOException
- if there was an IO error while writingpublic void writeLong(long value, String s) throws IOException
value
- a long
value to be written.s
- prefix to use if this write is logged. A value of null prevents logging altogether.
IOException
- if there was an IO error while writingpublic void writeFloat(float value, String s) throws IOException
value
- a float
value to be written.s
- prefix to use if this write is logged. A value of null prevents logging altogether.
IOException
- if there was an IO error while writingpublic void writeDouble(double value, String s) throws IOException
value
- a double
value to be written.s
- prefix to use if this write is logged. A value of null prevents logging altogether.
IOException
- if there was an IO error while writingpublic void writeString(String value, String s) throws IOException
First, four bytes are written to the output stream as if by the
writeInt
method giving the number of bytes to
follow. This value is the number of bytes actually written out,
not the length of the string. Following the length, each character
of the string is output, in sequence, using the UTF-8 encoding
for the character.
value
- a string to be written.s
- prefix to use if this write is logged. A value of null prevents logging altogether.
IOException
- if there was an IO error while writingpublic void writeObjectID(DataType.ObjectID value, String s) throws IOException
IOException
public void writeReferenceTypeID(DataType.ReferenceTypeID value, String s) throws IOException
IOException
public void writeTaggedObjectID(DataType.TaggedObjectID value, String s) throws IOException
IOException
public void writeMethodID(DataType.MethodID value, String s) throws IOException
IOException
public void writeFieldID(DataType.FieldID value, String s) throws IOException
IOException
public void writeFrameID(DataType.FrameID value, String s) throws IOException
IOException
public void writeLocation(DataType.Location value, String s) throws IOException
IOException
public void writeNullLocation(String s) throws IOException
IOException
public void writePrimitive(byte tag, long value, String s) throws IOException
tag
- a JDWP.Tag_...
valuevalue
- the value to write
IOException
- if there was an IO error while writingpublic void copyValue(int tag, PacketInputStream in) throws IOException
tag
- a JDWP.Tag_...
valuein
- a PacketInputStream containing a value to copy.
IOException
- if there was an IO error while writingpublic void copyTaggedValue(PacketInputStream in) throws IOException
in
- a PacketInputStream containing a tag and a value to copy.
IOException
- if there was an IO error while writingpublic void close(String s) throws IOException
IOException
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |