public final class ByteContainer extends Object
| Constructor and Description |
|---|
ByteContainer()
Construct
ByteContainer
with memory type JCSystem.MEMORY_TYPE_PERSISTENT |
ByteContainer(BigInteger bInteger)
Construct
ByteContainer
with memory type JCSystem.MEMORY_TYPE_PERSISTENT
and fills it by byte representation of BigInteger |
ByteContainer(byte memoryType)
Construct
ByteContainer
with defined memory type |
ByteContainer(byte[] buff,
short offset,
short length)
Construct
ByteContainer
with memory type JCSystem.MEMORY_TYPE_PERSISTENT
and fills it by defined byte array |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear internal structure of the
ByteContainer |
BigInteger |
getBigInteger()
Return
BigInteger representation of the ByteContainer |
byte[] |
getBytes(byte event)
Return transient plain byte array representation of the
ByteContainer |
short |
getBytes(byte[] dest,
short offset)
Copy byte array representation of the
ByteContainer |
boolean |
isInitialized()
Reports the initialized state of the container.
|
void |
setBigInteger(BigInteger bInteger)
Fills
ByteContainerby byte representation of BigInteger |
void |
setBytes(byte[] buff)
Fills
ByteContainerby defined byte array |
void |
setBytes(byte[] buff,
short offset,
short length)
Fills
ByteContainerby defined byte array |
public ByteContainer()
ByteContainer
with memory type JCSystem.MEMORY_TYPE_PERSISTENTpublic ByteContainer(byte memoryType)
ByteContainer
with defined memory typememoryType - memoryType from JCSystem.MEMORY_..public ByteContainer(BigInteger bInteger)
ByteContainer
with memory type JCSystem.MEMORY_TYPE_PERSISTENT
and fills it by byte representation of BigIntegerbInteger - BigInteger objectIllegalArgumentException - if bInteger is negativepublic ByteContainer(byte[] buff,
short offset,
short length)
ByteContainer
with memory type JCSystem.MEMORY_TYPE_PERSISTENT
and fills it by defined byte arraybuff - byte arrayoffset - offset in byte arraylength - length of data in byte arraypublic void setBigInteger(BigInteger bInteger)
ByteContainerby byte representation of BigIntegerbInteger - BigInteger objectIllegalArgumentException - if bInteger is negativepublic void setBytes(byte[] buff)
ByteContainerby defined byte arraybuff - byte arraypublic void setBytes(byte[] buff,
short offset,
short length)
ByteContainerby defined byte arraybuff - byte arrayoffset - offset in byte arraylength - length of data in byte arraypublic BigInteger getBigInteger()
BigInteger representation of the ByteContainerpublic byte[] getBytes(byte event)
ByteContainerevent - type of transient byte arraypublic short getBytes(byte[] dest,
short offset)
ByteContainerdest - destination byte arrayoffset - destination byte array offsetpublic void clear()
ByteContainerpublic boolean isInitialized()
true if the container has been initialized