|
||||||||||
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(String octetString)
|
Method Summary | |
---|---|
void |
code(DataOutputStream os)
encodes this object and writes it to the stream os. |
boolean |
decode(DataInputStream is)
decodes the data from the InputStream and writes it to an object |
boolean |
equals(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(String octetString)
Convert octet string to byte array. |
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(String octetString)
public OctetString()
Method Detail |
---|
public void set(byte[] octetString)
public void print()
ASNObject
print
in class ASNObject
public void code(DataOutputStream os) throws IOException
ASNObject
code
in class ASNObject
IOException
- if something went wrong while writing to the streampublic boolean decode(DataInputStream is) throws IOException
ASNObject
decode
in class ASNObject
IOException
- if something went wrong while reading from the streampublic byte[] getOctetString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class Object
public static byte[] toArray(String octetString)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |