snmp
Class AsnOctets
java.lang.Object
|
+--snmp.AsnObject
|
+--snmp.AsnOctets
- All Implemented Interfaces:
- java.io.Serializable
- public class AsnOctets
- extends AsnObject
- implements java.io.Serializable
ASN.1 Octet class
- Version:
- $Revision: 1.1.1.1 $ $State: Exp $
- Author:
- Steve Bush
- See Also:
- Serialized Form
Fields inherited from class snmp.AsnObject |
CONS_SEQ, GET_REQ_MSG, GET_RSP_MSG, GETNEXT_REQ_MSG, pdu_type, SET_REQ_MSG, SNMP_ERR_BADVALUE, SNMP_ERR_GENERR, SNMP_ERR_NOERROR, SNMP_ERR_NOSUCHNAME, SNMP_ERR_READONLY, SNMP_ERR_TOOBIG, SNMP_VERSION_1, TRP_REQ_MSG |
Constructor Summary |
AsnOctets(byte[] s)
Build octet from input. |
AsnOctets(char[] s)
Build octet from input. |
AsnOctets(java.io.InputStream in)
Build octet from input. |
AsnOctets(java.lang.String s)
Build octet from input. |
Method Summary |
int |
size()
Return the length of the octet. |
java.lang.String |
toString()
|
byte[] |
value()
|
void |
write(java.io.OutputStream out)
Write the octet on the output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AsnOctets
public AsnOctets(char[] s)
- Build octet from input.
- Parameters:
s
- Data to turn into octet.
AsnOctets
public AsnOctets(java.lang.String s)
- Build octet from input.
- Parameters:
s
- Data to turn into octet.
AsnOctets
public AsnOctets(byte[] s)
- Build octet from input.
- Parameters:
s
- Data to turn into octet.
AsnOctets
public AsnOctets(java.io.InputStream in)
throws java.io.IOException
- Build octet from input.
- Parameters:
s
- Data to turn into octet.
write
public void write(java.io.OutputStream out)
throws java.io.IOException
- Write the octet on the output stream.
- Overrides:
write
in class AsnObject
- Parameters:
out
- Output stream.
size
public int size()
- Return the length of the octet.
- Overrides:
size
in class AsnObject
- Returns:
- Length of the octet.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- string version of octet.
value
public byte[] value()