org.openmuc.jsml.structures
public class OctetString extends ASNObject
Modifier and Type | Field and Description |
---|---|
protected byte[] |
octetString |
isOptional, isSelected
Constructor and Description |
---|
OctetString() |
OctetString(byte[] octetString) |
OctetString(java.lang.String octetString) |
Modifier and Type | Method and Description |
---|---|
void |
code(java.io.DataOutputStream os)
encodes this object and writes it to the stream os.
|
boolean |
decode(java.io.DataInputStream is)
decodes the data from the InputStream and writes it to an object
|
boolean |
equals(java.lang.Object other)
Compares this octet string to the specified object.
|
byte[] |
getOctetString() |
int |
hashCode()
Returns a hash code for this octet string.
|
void |
print()
prints the content or type of the object to stdout
|
void |
set(byte[] octetString) |
static byte[] |
toArray(java.lang.String octetString)
Convert octet string to byte array.
|
java.lang.String |
toString() |
isOptional, isSelected, setOptional, setSelected
public OctetString(byte[] octetString)
public OctetString(java.lang.String octetString)
public OctetString()
public void set(byte[] octetString)
public void print()
ASNObject
public void code(java.io.DataOutputStream os) throws java.io.IOException
ASNObject
public boolean decode(java.io.DataInputStream is) throws java.io.IOException
ASNObject
public byte[] getOctetString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static byte[] toArray(java.lang.String octetString)