|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.percederberg.mibble.MibWriter
public class MibWriter
A MIB output stream writer. This class contains a pretty printer for a loaded MIB. All macros and data are printed in SMIv2 format, and no translation from SMIv1 to SMIv2 takes place. The optional SMIv1 backward compability flag may be set, which should allow SMIv1 MIB:s to be printed correctly (but still without any translation).
Constructor Summary | |
---|---|
MibWriter(java.io.OutputStream os)
Creates a new MIB writer. |
|
MibWriter(java.io.Writer os)
Creates a new MIB writer without any print margin. |
|
MibWriter(java.io.Writer os,
int margin)
Creates a new MIB writer. |
Method Summary | |
---|---|
void |
close()
Closes the underlying output stream. |
void |
print(Mib mib)
Prints the specified MIB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MibWriter(java.io.OutputStream os)
os
- the underlying output stream to usepublic MibWriter(java.io.Writer os)
os
- the underlying writer to usepublic MibWriter(java.io.Writer os, int margin)
os
- the underlying writer to usemargin
- the print margin, or zero (0) for noneMethod Detail |
---|
public void close()
public void print(Mib mib)
mib
- the MIB to print
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |