OfflineEditsVisitor@Private @Unstable public class XmlEditsVisitor extends java.lang.Object implements OfflineEditsVisitor
| Constructor | Description |
|---|---|
XmlEditsVisitor(java.io.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 | Description |
|---|---|---|
void |
addString(java.lang.String str) |
|
void |
close(java.lang.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(java.io.OutputStream out)
throws java.io.IOException
out - output stream to writejava.io.IOException - on any errorpublic void start(int version)
throws java.io.IOException
start in interface OfflineEditsVisitorversion - Edit log versionjava.io.IOExceptionpublic void addString(java.lang.String str)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic void close(java.lang.Throwable error)
throws java.io.IOException
close in interface OfflineEditsVisitorerror - If the visitor was closed because of an
unrecoverable error in the input stream, this
is the exception.java.io.IOExceptionpublic void visitOp(FSEditLogOp op) throws java.io.IOException
OfflineEditsVisitorvisitOp in interface OfflineEditsVisitorop - Token being visitedjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.