|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.net.marshall.PacketMarshaller
megamek.common.net.marshall.XMLMarshaller
public class XMLMarshaller
Marshaller that uses XML for Packetrepresentation.
| Field Summary |
|---|
| Fields inherited from class megamek.common.net.marshall.PacketMarshaller |
|---|
NATIVE_SERIALIZATION_MARSHALING, XML_MARSHALING |
| Constructor Summary | |
|---|---|
XMLMarshaller()
|
|
| Method Summary | |
|---|---|
void |
marshall(Packet packet,
java.io.OutputStream stream)
Marshalls the packet data into the given OutputStream |
Packet |
unmarshall(java.io.InputStream stream)
Unmarshalls the packet data from the given InputStream |
| Methods inherited from class megamek.common.net.marshall.PacketMarshaller |
|---|
marshall, unmarshall |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLMarshaller()
| Method Detail |
|---|
public void marshall(Packet packet,
java.io.OutputStream stream)
throws java.lang.Exception
PacketMarshallerOutputStream
marshall in class PacketMarshallerpacket - packet to marshallstream - OutputStream to marshall the
Packet to
java.lang.Exception
public Packet unmarshall(java.io.InputStream stream)
throws java.lang.Exception
PacketMarshallerInputStream
unmarshall in class PacketMarshallerstream - InputStream to unmarshall the packet from
Packetunmarshalled from the given
InputStream
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||