public class PacketOutputStream
extends java.io.DataOutputStream
Constructor and Description |
---|
PacketOutputStream()
constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
toByteArray()
returns the written data
|
void |
writeAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
writes attributes
|
void |
writeException(IException exception)
writes an exception
|
void |
writeExceptionType(IExceptionType type)
writes an exception type
|
void |
writeLocation(ILocation location)
writes a location
|
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
public void writeLocation(ILocation location) throws java.io.IOException
java.io.IOException
public void writeAttributes(java.util.Map<java.lang.String,java.lang.String> attributes) throws java.io.IOException
java.io.IOException
public void writeExceptionType(IExceptionType type) throws java.io.IOException
java.io.IOException
public void writeException(IException exception) throws java.io.IOException
java.io.IOException
public byte[] toByteArray() throws java.io.IOException
java.io.IOException