com.caucho.server.snmp
Class SnmpParser

java.lang.Object
  extended by com.caucho.server.snmp.SnmpParser

public class SnmpParser
extends java.lang.Object


Constructor Summary
SnmpParser(java.io.InputStream is)
           
SnmpParser(java.lang.String s)
           
 
Method Summary
 SnmpValue read()
           
 CounterValue readCounter()
           
 GaugeValue readGauge()
           
 PduValue readGetNextRequestPdu()
           
 PduValue readGetRequestPdu()
           
 PduValue readGetResponsePdu()
           
 IntegerValue readInteger()
           
 IpAddressValue readIpAddress()
           
 int readLength()
           
 SnmpMessageValue readMessage()
           
 NullValue readNull()
           
 ObjectIdentifierValue readObjectIdentifier()
           
 OctetStringValue readOctetString()
           
 OpaqueValue readOpaque()
           
 SequenceValue<SnmpValue> readSequence()
           
 PduValue readSetRequestPdu()
           
 TimeTicksValue readTimeTicks()
           
 VarBindValue readVarBind()
           
 VarBindListValue readVarBindList()
           
 void skipObject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpParser

public SnmpParser(java.io.InputStream is)

SnmpParser

public SnmpParser(java.lang.String s)
Method Detail

readMessage

public SnmpMessageValue readMessage()
                             throws java.io.IOException
Throws:
java.io.IOException

readGetRequestPdu

public PduValue readGetRequestPdu()
                           throws java.io.IOException
Throws:
java.io.IOException

readGetNextRequestPdu

public PduValue readGetNextRequestPdu()
                               throws java.io.IOException
Throws:
java.io.IOException

readSetRequestPdu

public PduValue readSetRequestPdu()
                           throws java.io.IOException
Throws:
java.io.IOException

readGetResponsePdu

public PduValue readGetResponsePdu()
                            throws java.io.IOException
Throws:
java.io.IOException

readVarBindList

public VarBindListValue readVarBindList()
                                 throws java.io.IOException
Throws:
java.io.IOException

readVarBind

public VarBindValue readVarBind()
                         throws java.io.IOException
Throws:
java.io.IOException

skipObject

public void skipObject()
                throws java.io.IOException
Throws:
java.io.IOException

read

public SnmpValue read()
               throws java.io.IOException
Throws:
java.io.IOException

readNull

public NullValue readNull()
                   throws java.io.IOException
Throws:
java.io.IOException

readInteger

public IntegerValue readInteger()
                         throws java.io.IOException
Throws:
java.io.IOException

readOctetString

public OctetStringValue readOctetString()
                                 throws java.io.IOException
Throws:
java.io.IOException

readObjectIdentifier

public ObjectIdentifierValue readObjectIdentifier()
                                           throws java.io.IOException
Throws:
java.io.IOException

readIpAddress

public IpAddressValue readIpAddress()
                             throws java.io.IOException
Throws:
java.io.IOException

readCounter

public CounterValue readCounter()
                         throws java.io.IOException
Throws:
java.io.IOException

readGauge

public GaugeValue readGauge()
                     throws java.io.IOException
Throws:
java.io.IOException

readTimeTicks

public TimeTicksValue readTimeTicks()
                             throws java.io.IOException
Throws:
java.io.IOException

readOpaque

public OpaqueValue readOpaque()
                       throws java.io.IOException
Throws:
java.io.IOException

readSequence

public SequenceValue<SnmpValue> readSequence()
                                      throws java.io.IOException
Throws:
java.io.IOException

readLength

public int readLength()
               throws java.io.IOException
Throws:
java.io.IOException