Class XmlImageVisitor
java.lang.Object
org.apache.hadoop.hdfs.tools.offlineImageViewer.XmlImageVisitor
An XmlImageVisitor walks over an fsimage structure and writes out
an equivalent XML document that contains the fsimage's components.
-
Constructor Summary
ConstructorsConstructorDescriptionXmlImageVisitor(String filename) XmlImageVisitor(String filename, boolean printToScreen) -
Method Summary
-
Constructor Details
-
XmlImageVisitor
- Throws:
IOException
-
XmlImageVisitor
- Throws:
IOException
-
-
Method Details
-
write
Write parameter to output file (and possibly screen).- Parameters:
toWrite- Text to write to file- Throws:
IOException
-