@InterfaceAudience.Private @InterfaceStability.Unstable public class XmlEditsVisitor extends Object implements OfflineEditsVisitor
| Constructor and Description |
|---|
XmlEditsVisitor(OutputStream out)
Create a processor that writes to the file named and may or may not
also output to the screen, as specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addString(String str) |
void |
close(Throwable error)
Finish visitor
|
void |
start(int version)
Start visitor (initialization)
|
void |
visitOp(FSEditLogOp op)
Begin visiting an element that encloses another element, such as
the beginning of the list of blocks that comprise a file.
|
public XmlEditsVisitor(OutputStream out) throws IOException
filename - Name of file to write output toprintToScreen - Mirror output to screen?IOExceptionpublic void start(int version)
throws IOException
start in interface OfflineEditsVisitorversion - Edit log versionIOExceptionpublic void addString(String str) throws SAXException
SAXExceptionpublic void close(Throwable error) throws IOException
close in interface OfflineEditsVisitorerror - If the visitor was closed because of an
unrecoverable error in the input stream, this
is the exception.IOExceptionpublic void visitOp(FSEditLogOp op) throws IOException
OfflineEditsVisitorvisitOp in interface OfflineEditsVisitorIOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.