|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmuc.jsml.structures.ASNObject
org.openmuc.jsml.structures.OctetString
public class OctetString
Field Summary | |
---|---|
protected byte[] |
octetString
|
Fields inherited from class org.openmuc.jsml.structures.ASNObject |
---|
isOptional, isSelected |
Constructor Summary | |
---|---|
OctetString()
|
|
OctetString(byte[] octetString)
|
|
OctetString(java.lang.String octetString)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.openmuc.jsml.structures.ASNObject |
---|
isOptional, isSelected, setOptional, setSelected |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected byte[] octetString
Constructor Detail |
---|
public OctetString(byte[] octetString)
public OctetString(java.lang.String octetString)
public OctetString()
Method Detail |
---|
public void set(byte[] octetString)
public void print()
ASNObject
print
in class ASNObject
public void code(java.io.DataOutputStream os) throws java.io.IOException
ASNObject
code
in class ASNObject
java.io.IOException
- if something went wrong while writing to the streampublic boolean decode(java.io.DataInputStream is) throws java.io.IOException
ASNObject
decode
in class ASNObject
java.io.IOException
- if something went wrong while reading from the streampublic 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |