public class Identifier
extends java.lang.Object
Constructor and Description |
---|
Identifier() |
Identifier(byte[] code) |
Identifier(java.lang.String strCode)
This constructor creates an identifier using the
characters in the given string interpreted as ASCII.
|
Modifier and Type | Method and Description |
---|---|
void |
consume(CDataReadWriteAccess in,
Identifier expected)
This reads a code from the input stream and compares it
to the 'expected' value.
|
boolean |
equals(java.lang.Object obj) |
byte[] |
getData()
Returns the sequence of bytes which represents the actual code.
|
java.lang.String |
getDataString() |
int |
hashCode() |
void |
read(CDataReadWriteAccess in)
This method reads the code from the give input stream.
|
java.lang.String |
toString() |
void |
write(CDataReadWriteAccess io) |
public Identifier()
public Identifier(java.lang.String strCode)
strCode
- public Identifier(byte[] code)
public void read(CDataReadWriteAccess in) throws java.io.IOException
in
- java.io.IOException
public void write(CDataReadWriteAccess io) throws java.io.IOException
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void consume(CDataReadWriteAccess in, Identifier expected) throws java.io.IOException
in
- expected
- java.io.IOException
public java.lang.String getDataString()
public byte[] getData()