asia.redact.bracket.properties
Class OutputAdapter
java.lang.Object
asia.redact.bracket.properties.OutputAdapter
public class OutputAdapter
- extends Object
Output the properties to various data sinks and in various formats.
- Author:
- Dave
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
final Properties properties
lineSeparator
static final String lineSeparator
OutputAdapter
public OutputAdapter(Properties properties)
writeTo
public void writeTo(File file)
writeTo
public void writeTo(File file,
OutputFormat format)
writeTo
public void writeTo(Writer writer,
OutputFormat format)
throws IOException
- Throws:
IOException
writeTo
public void writeTo(Writer writer)
throws IOException
- Throws:
IOException
writeAsXml
public void writeAsXml(Writer out)
- The output from this method is designed to be read back in using Properties.Factory.getInstanceFromXML(File).
- Parameters:
out -
visit
private void visit(Node node,
int level,
NodeVisitor func)
Copyright © 2011-2013 David R. Smith. All Rights Reserved.