|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.businesslink.sgi.api.hsm.HsmData
Class used to store all HSM request and reply data.
Constructor Summary | |
HsmData()
|
|
HsmData(int initialDataSpace)
|
Method Summary | |
protected java.lang.Object |
clone()
Clones this HsmData object. |
void |
dump(java.io.PrintWriter wtr,
java.lang.String lbl)
Displays the contents of this HsmData object to the specified PrintWriter. |
char[] |
getChars()
Gets all valid HSM data from the internal HSM data buffer. |
char[] |
getChars(int start)
Gets data from the internal HSM data buffer. |
char[] |
getChars(int start,
int length)
Gets data from the internal HSM data buffer. |
char[] |
getCharsNext()
Gets all remaining data from the internal HSM data buffer based on the last get method call. |
char[] |
getCharsNext(int length)
Gets remaining data from the internal HSM data buffer based on the last get method call. |
java.lang.String |
getOpcode()
Gets the opcode. |
int |
getPosition()
Gets the value of the internal position variable. |
java.lang.String |
getString()
Gets all valid HSM data from the internal HSM data buffer. |
java.lang.String |
getString(int start)
Gets data from the internal HSM data buffer. |
java.lang.String |
getString(int start,
int length)
Gets data from the internal HSM data buffer. |
java.lang.StringBuffer |
getStringBuffer()
Gets all valid HSM data from the internal HSM data buffer. |
java.lang.StringBuffer |
getStringBuffer(int start)
Gets data from the internal HSM data buffer. |
java.lang.StringBuffer |
getStringBuffer(int start,
int length)
Gets data from the internal HSM data buffer. |
java.lang.StringBuffer |
getStringBufferNext()
Gets all remaining data from the internal HSM data buffer based on the last get method call. |
java.lang.StringBuffer |
getStringBufferNext(int length)
Gets remaining data from the internal HSM data buffer based on the last get method call. |
java.lang.String |
getStringNext()
Gets all remaining data from the internal HSM data buffer based on the last get method call. |
java.lang.String |
getStringNext(int length)
Gets remaining data from the internal HSM data buffer based on the last get method call. |
int |
length()
Returns the length of the valid HSM data contained in this HsmData object. |
int |
remaining()
Returns the remaining number of valid data characters based on the current position. |
void |
reset()
Resets this HsmData object, clearing all internal data. |
void |
setData(char[] data)
Sets data in the internal HSM data buffer. |
void |
setData(int start,
char[] data)
Sets data in the internal HSM data buffer. |
void |
setData(int start,
int length,
char[] data)
Sets data in the internal HSM data buffer. |
void |
setData(int start,
int length,
java.lang.String data)
Sets data in the internal HSM data buffer. |
void |
setData(int start,
int length,
java.lang.StringBuffer data)
Sets data in the internal HSM data buffer. |
void |
setData(int start,
java.lang.String data)
Sets data in the internal HSM data buffer. |
void |
setData(int start,
java.lang.StringBuffer data)
Sets data in the internal HSM data buffer. |
void |
setData(java.lang.String data)
Sets data in the internal HSM data buffer. |
void |
setData(java.lang.StringBuffer data)
Sets data in the internal HSM data buffer. |
void |
setDataNext(char[] data)
Sets data in the internal HSM data buffer based on the last setData method call. |
void |
setDataNext(int length,
char[] data)
Sets data in the internal HSM data buffer based on the last setData method call. |
void |
setDataNext(int length,
java.lang.String data)
Sets data in the internal HSM data buffer based on the last setData method call. |
void |
setDataNext(int length,
java.lang.StringBuffer data)
Sets data in the internal HSM data buffer based on the last setData method call. |
void |
setDataNext(java.lang.String data)
Sets data in the internal HSM data buffer based on the last setData method call. |
void |
setDataNext(java.lang.StringBuffer data)
Sets data in the internal HSM data buffer based on the last setData method call. |
void |
setOpcode(java.lang.String opc)
Sets the opcode. |
void |
setPosition(int pos)
Sets the value of the internal position variable. |
int |
unused()
Returns the length of the unused HSM data in this HsmData object. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public HsmData()
public HsmData(int initialDataSpace)
initialDataSpace
- the initial size of the internal character array.Method Detail |
protected java.lang.Object clone()
public void reset()
public int length()
public int unused()
public int remaining()
public int getPosition()
public void setPosition(int pos)
pos
- the new position.public void dump(java.io.PrintWriter wtr, java.lang.String lbl)
wtr
- the PrintWriter to write to.lbl
- a label identifying this dump (usually "REQUEST" or "REPLY").public void setOpcode(java.lang.String opc)
opc
- the opcode to set.public java.lang.String getOpcode()
public void setData(char[] data)
data
- the data to set.public void setData(java.lang.String data)
data
- the data to set.public void setData(java.lang.StringBuffer data)
data
- the data to set.public void setData(int start, char[] data)
start
- the starting position in the HSM data buffer.data
- the data to set.public void setData(int start, java.lang.String data)
start
- the starting position in the HSM data buffer.data
- the data to set.public void setData(int start, java.lang.StringBuffer data)
start
- the starting position in the HSM data buffer.data
- the data to set.public void setData(int start, int length, char[] data)
start
- the starting position in the HSM data buffer.length
- the number of characters to set.data
- the data to set.public void setData(int start, int length, java.lang.String data)
start
- the starting position in the HSM data buffer.length
- the number of characters to set.data
- the data to set.public void setData(int start, int length, java.lang.StringBuffer data)
start
- the starting position in the HSM data buffer.length
- the number of characters to set.data
- the data to set.public void setDataNext(char[] data)
data
- the data to set.public void setDataNext(java.lang.String data)
data
- the data to set.public void setDataNext(java.lang.StringBuffer data)
data
- the data to set.public void setDataNext(int length, java.lang.String data)
length
- the number of characters to set.data
- the data to set.public void setDataNext(int length, char[] data)
length
- the number of characters to set.data
- the data to set.public void setDataNext(int length, java.lang.StringBuffer data)
length
- the number of characters to set.data
- the data to set.public char[] getChars()
public char[] getChars(int start)
start
- the starting position in the HSM data buffer.public char[] getChars(int start, int length)
start
- the starting position in the HSM data buffer.length
- the number of characters to get.public char[] getCharsNext()
public char[] getCharsNext(int length)
length
- the number of characters to get.public java.lang.String getString()
public java.lang.String getString(int start)
start
- the starting position in the HSM data buffer.public java.lang.String getString(int start, int length)
start
- the starting position in the HSM data buffer.length
- the number of characters to get.public java.lang.String getStringNext()
public java.lang.String getStringNext(int length)
length
- the number of characters to get.public java.lang.StringBuffer getStringBuffer()
public java.lang.StringBuffer getStringBuffer(int start)
start
- the starting position in the HSM data buffer.public java.lang.StringBuffer getStringBuffer(int start, int length)
start
- the starting position in the HSM data buffer.length
- the number of characters to get.public java.lang.StringBuffer getStringBufferNext()
public java.lang.StringBuffer getStringBufferNext(int length)
length
- the number of characters to get.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |