public class DataPointerPayload extends Object implements IDataPayload
PAYLOAD_TYPE_HEADER, PAYLOAD_TYPE_JPG, PAYLOAD_TYPE_MULTI, PAYLOAD_TYPE_SMS, PAYLOAD_TYPE_TEXT, PAYLOAD_TYPE_XML| Constructor and Description |
|---|
DataPointerPayload()
Note: Only useful for serialization.
|
DataPointerPayload(IDataPointer pointer) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(IDataPayloadVisitor<T> visitor)
Visitor pattern accept method.
|
long |
getLength() |
String |
getPayloadId() |
InputStream |
getPayloadStream()
Gets the stream for this payload.
|
int |
getPayloadType() |
int |
getTransportId() |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
writeExternal(DataOutputStream out) |
public DataPointerPayload()
public DataPointerPayload(IDataPointer pointer)
public <T> T accept(IDataPayloadVisitor<T> visitor)
IDataPayloadaccept in interface IDataPayloadvisitor - The visitor to visit this payload.public long getLength()
getLength in interface IDataPayloadpublic String getPayloadId()
getPayloadId in interface IDataPayloadpublic InputStream getPayloadStream() throws IOException
IDataPayloadgetPayloadStream in interface IDataPayloadIOExceptionpublic int getPayloadType()
getPayloadType in interface IDataPayloadpublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizableIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic int getTransportId()
getTransportId in interface IDataPayloadCopyright © 2024. All rights reserved.