|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jason.client.Appender
Title: Javacard As Secure Object Store
Description: Serializer for primitive data types
Copyright: Copyright (c) 2002
Company: University of Twente
| Field Summary | |
protected byte[] |
buffer
Internal buffer |
protected boolean |
storeLengths
Indicates whether the length of an array should be stored as well |
| Constructor Summary | |
Appender()
Makes a new Appender with the storeLengths variable set to true. |
|
Appender(boolean storeLengths)
Makes a new Appender. |
|
| Method Summary | |
void |
append(Appender appender)
Appends another appender (i.e. appending the internal buffer of the other Appender). |
void |
append(boolean b)
Adds a single boolean. |
void |
append(byte b)
Appends a single byte. |
void |
append(byte[] b)
Appends the whole byte array. |
void |
append(byte[] b,
int offset,
int length)
Appends only the specified part of the array. |
void |
append(short s)
Appends a single short. |
protected void |
appendIntern(byte[] b)
Appends to whole array. |
protected void |
appendIntern(byte[] b,
int offset,
int length)
Build a bigger array containing the old array and the specified part of the given array. |
byte[] |
getBuffer()
Gets the internal buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean storeLengths
protected byte[] buffer
| Constructor Detail |
public Appender()
storeLengths variable set to true.
public Appender(boolean storeLengths)
storeLengths - Indicates whether the length of an array should be stored as well| Method Detail |
protected void appendIntern(byte[] b,
int offset,
int length)
Appender only have to modify this method.
b - The data to add to the internal bufferoffset - Offset within blength - Length of bytes to copyprotected void appendIntern(byte[] b)
b - Data to be addedpublic void append(byte b)
b - Data to be addedpublic void append(boolean b)
b - Data to be addedpublic void append(short s)
s - Data to be added
public void append(byte[] b,
int offset,
int length)
b - Data to be addedoffset - Offset within blength - Length of bytes to be copiedpublic void append(byte[] b)
b - Data to be addedpublic void append(Appender appender)
appender - The Appender to be appendedpublic byte[] getBuffer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||