org.apache.hadoop.hdfs.tools.offlineImageViewer
Class XmlImageVisitor
java.lang.Object
org.apache.hadoop.hdfs.tools.offlineImageViewer.XmlImageVisitor
public class XmlImageVisitor
- extends Object
An XmlImageVisitor walks over an fsimage structure and writes out
an equivalent XML document that contains the fsimage's components.
Nested Class Summary |
static class |
ImageVisitor.ImageElement
Structural elements of an FSImage that may be encountered within the
file. |
Method Summary |
protected void |
write(String toWrite)
Write parameter to output file (and possibly screen). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlImageVisitor
public XmlImageVisitor(String filename)
throws IOException
- Throws:
IOException
XmlImageVisitor
public XmlImageVisitor(String filename,
boolean printToScreen)
throws IOException
- Throws:
IOException
write
protected void write(String toWrite)
throws IOException
- Write parameter to output file (and possibly screen).
- Parameters:
toWrite
- Text to write to file
- Throws:
IOException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.