org.snmp4j.agent.io.xml
Class XmlMOInput
java.lang.Object
org.snmp4j.agent.io.xml.XmlMOInput
- All Implemented Interfaces:
- MOInput
public class XmlMOInput
- extends java.lang.Object
- implements MOInput
|
Constructor Summary |
XmlMOInput(java.io.InputStream data,
java.io.InputStream schema)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.snmp4j.agent.io.MOInput |
close |
XmlMOInput
public XmlMOInput(java.io.InputStream data,
java.io.InputStream schema)
getImportMode
public int getImportMode()
- Returns the update mode, which might be one of the constants defined by
ImportModes. By default, ImportModes.REPLACE_CREATE is
returned.
- Specified by:
getImportMode in interface MOInput
- Returns:
- the constant denoting the update mode that should be used by a
SerializableManagedObject to import its content from
persistent storage.
readContext
public Context readContext()
throws java.io.IOException
- Specified by:
readContext in interface MOInput
- Throws:
java.io.IOException
readIndexedVariables
public IndexedVariables readIndexedVariables()
throws java.io.IOException
- Specified by:
readIndexedVariables in interface MOInput
- Throws:
java.io.IOException
readManagedObject
public MOInfo readManagedObject()
throws java.io.IOException
- Specified by:
readManagedObject in interface MOInput
- Throws:
java.io.IOException
readSequence
public Sequence readSequence()
throws java.io.IOException
- Specified by:
readSequence in interface MOInput
- Throws:
java.io.IOException
readVariable
public org.snmp4j.smi.Variable readVariable()
throws java.io.IOException
- readVariable
- Specified by:
readVariable in interface MOInput
- Returns:
- Variable
- Throws:
java.io.IOException
skipContext
public void skipContext(Context context)
throws java.io.IOException
- skipContext
- Specified by:
skipContext in interface MOInput
- Parameters:
context - Context
- Throws:
java.io.IOException
skipManagedObject
public void skipManagedObject(MOInfo mo)
throws java.io.IOException
- Skips to the end of the specified managed object's configuration.
- Specified by:
skipManagedObject in interface MOInput
- Parameters:
mo - a MOInfo instance.
- Throws:
java.io.IOException