|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.framework.EPPXMLByteArrayAssembler
public class EPPXMLByteArrayAssembler
The EPPXMLByteArrayAssembler class provides an implementation of
EPPByteArrayAssembler that can assemble/disassemble
EPPMessages and EPPEventResponses to and from
byte arrays that contain the streamed XML.
EPPByteArrayAssembler| Constructor Summary | |
|---|---|
EPPXMLByteArrayAssembler()
Construct and instance of an EPPXMLByteArrayAssembler |
|
| Method Summary | |
|---|---|
EPPEvent |
decode(byte[] aBytes,
java.lang.Object aData)
Takes an input byte array and reads XML from it to create an
EPPEvent |
byte[] |
encode(EPPEventResponse aResponse,
java.lang.Object aData)
Takes an EPPEventResponse and serializes it to a
byte array in XML Format. |
static byte[] |
toBytes(int aInteger)
Converts an integer to a byte array of size 4 with first array element containing the first 8 bits of the integer, the second array element containing the 9th to 16th bits of the integer, the third array element containing the 17th to 24th bits of the integer and the last array element containing the last 8 bits of the integer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EPPXMLByteArrayAssembler()
EPPXMLByteArrayAssembler
| Method Detail |
|---|
public static byte[] toBytes(int aInteger)
aInteger - The integer that needs to be converted to a byte array.
public EPPEvent decode(byte[] aBytes,
java.lang.Object aData)
throws EPPAssemblerException
byte array and reads XML from it to create an
EPPEvent
decode in interface EPPByteArrayAssembleraBytes - The byte array to read data from.aData - A data object which can be used to store context information.
EPPEvent that is created from the
InputStream
EPPAssemblerException - Error creating the EPPEvent
public byte[] encode(EPPEventResponse aResponse,
java.lang.Object aData)
throws EPPAssemblerException
EPPEventResponse and serializes it to a
byte array in XML Format.
encode in interface EPPByteArrayAssembleraResponse - The response that will be serializedaData - A data object which can be used to store context information.
EPPAssemblerException - Error serializing the EPPEventResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||