|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--QueueOfBytes
Class QueueOfBytes uses a LinkedList from the java.util package. It can be used to collect raw bytes in a FIFO manner. Since its size is maintained in a byte, it must never have more than 127 bytes of data. This was done so that signed data does not cause problems in RSA.
Constructor Summary | |
QueueOfBytes()
Constructor |
Method Summary | |
byte |
dequeue()
dequeue Precondition The queue must contain at least one data byte. |
void |
enqueue(byte b)
enqueue |
byte[] |
getBlockOfBytes()
getBlockOfBytes |
boolean |
isEmpty()
isEmpty |
static void |
main(java.lang.String[] a)
Test driver for QueueOfBytes |
byte |
size()
size |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public QueueOfBytes()
none
- Method Detail |
public boolean isEmpty()
none
- public byte size()
none
- public void enqueue(byte b)
b
- is raw byte of data
public byte dequeue()
public byte[] getBlockOfBytes()
public static void main(java.lang.String[] a)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |