public class PduFactory
extends java.lang.Object
This should be reworked to use the separate enumerations package, which is generated from the XML EBV file. That's included with the open-dis distribution, but it's still a little new.
Modifier and Type | Class and Description |
---|---|
static class |
PduFactory.Platform |
Constructor and Description |
---|
PduFactory()
Creates a new instance of PduFactory
|
PduFactory(boolean useFastPdu)
Create a new PDU factory; if true is passed in, we use "fast PDUs",
which minimize the memory garbage generated at the cost of being
somewhat less pleasant to work with.
|
Modifier and Type | Method and Description |
---|---|
Pdu |
createPdu(byte[] data)
PDU factory.
|
Pdu |
createPdu(java.nio.ByteBuffer buff)
PDU factory.
|
boolean |
getUseFastPdu() |
void |
setUseFastPdu(boolean use) |
public PduFactory()
public PduFactory(boolean useFastPdu)
useFastPdu
- public void setUseFastPdu(boolean use)
public boolean getUseFastPdu()
public Pdu createPdu(byte[] data)
data
- public Pdu createPdu(java.nio.ByteBuffer buff)
buff
-