|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.licel.jcardsim.crypto.ByteContainer
public final class ByteContainer
This class contains byte array, initialization flag of this array and memory type
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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()
|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteContainer()
ByteContainer
with memory type JCSystem.MEMORY_TYPE_PERSISTENT
public ByteContainer(byte memoryType)
ByteContainer
with defined memory type
memoryType - memoryType from JCSystem.MEMORY_..public ByteContainer(BigInteger bInteger)
ByteContainer
with memory type JCSystem.MEMORY_TYPE_PERSISTENT
and fills it by byte representation of BigInteger
bInteger - BigInteger object
public ByteContainer(byte[] buff,
short offset,
short length)
ByteContainer
with memory type JCSystem.MEMORY_TYPE_PERSISTENT
and fills it by defined byte array
buff - byte arrayoffset - length - | Method Detail |
|---|
public void setBigInteger(BigInteger bInteger)
ByteContainerby byte representation of BigInteger
bInteger - public void setBytes(byte[] buff)
ByteContainerby defined byte array
buff -
public void setBytes(byte[] buff,
short offset,
short length)
ByteContainerby defined byte array
buff - offset - length - public BigInteger getBigInteger()
BigInteger representation of the ByteContainer
public byte[] getBytes(byte event)
ByteContainer
event - type of transient byte array
public short getBytes(byte[] dest,
short offset)
ByteContainer
dest - destination byte arrayoffset -
public void clear()
ByteContainer
public boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||