|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.yamlbeans.YamlWriter
public class YamlWriter
Serializes Java objects as YAML.
| Constructor Summary | |
|---|---|
YamlWriter(java.io.Writer writer)
|
|
YamlWriter(java.io.Writer writer,
YamlConfig config)
|
|
| Method Summary | |
|---|---|
void |
clearAnchors()
Writes any buffered objects, then resets the list of anchored objects. |
void |
close()
Finishes writing any buffered output and releases all resources. |
YamlConfig |
getConfig()
|
Emitter |
getEmitter()
Returns the YAML emitter, which allows the YAML output to be configured. |
static void |
main(java.lang.String[] args)
|
void |
write(java.lang.Object object)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YamlWriter(java.io.Writer writer)
public YamlWriter(java.io.Writer writer,
YamlConfig config)
| Method Detail |
|---|
public void write(java.lang.Object object)
throws YamlException
YamlExceptionpublic YamlConfig getConfig()
public Emitter getEmitter()
public void clearAnchors()
throws YamlException
YamlExceptionYamlConfig.WriteConfig.setAutoAnchor(boolean)
public void close()
throws YamlException
YamlException - If the buffered output could not be written or the writer could not be closed.
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||