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.
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.
|
java.util.List<Pdu> |
getPdusFromBundle(byte[] data)
Decodes datagram contents with bundled PDUs.
|
boolean |
getUseFastPdu() |
void |
setLoggingLevel(java.util.logging.Level loggingLevel)
Set the logging level that will be printed, typically to Level.INFO
|
void |
setUseFastPdu(boolean use) |
public PduFactory()
public PduFactory(boolean useFastPdu)
useFastPdu
- public void setUseFastPdu(boolean use)
public boolean getUseFastPdu()
public void setLoggingLevel(java.util.logging.Level loggingLevel)
loggingLevel
- public Pdu createPdu(byte[] data)
data
- public Pdu createPdu(java.nio.ByteBuffer buff)
buff
- public java.util.List<Pdu> getPdusFromBundle(byte[] data)
data
-