net.sourceforge.yamlbeans.emitter
Class EmitterConfig

java.lang.Object
  extended by net.sourceforge.yamlbeans.emitter.EmitterConfig

public class EmitterConfig
extends java.lang.Object


Constructor Summary
EmitterConfig()
           
 
Method Summary
 void setCanonical(boolean canonical)
          If true, the YAML output will be canonical.
 void setEscapeUnicode(boolean escapeUnicode)
          If false, UTF-8 unicode characters will be output instead of the escaped unicode character code.
 void setIndentSize(int indentSize)
          Sets the number of spaces to indent.
 void setUseVerbatimTags(boolean useVerbatimTags)
          If false, tags will never be surrounded by angle brackets (eg, "!").
 void setVersion(Version version)
          Sets the YAML version to output.
 void setWrapColumn(int wrapColumn)
          Sets the column at which values will attempt to wrap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmitterConfig

public EmitterConfig()
Method Detail

setVersion

public void setVersion(Version version)
Sets the YAML version to output. Default is 1.1.


setCanonical

public void setCanonical(boolean canonical)
If true, the YAML output will be canonical. Default is false.


setIndentSize

public void setIndentSize(int indentSize)
Sets the number of spaces to indent. Default is 3.


setWrapColumn

public void setWrapColumn(int wrapColumn)
Sets the column at which values will attempt to wrap. Default is 100.


setUseVerbatimTags

public void setUseVerbatimTags(boolean useVerbatimTags)
If false, tags will never be surrounded by angle brackets (eg, "!"). Default is true.


setEscapeUnicode

public void setEscapeUnicode(boolean escapeUnicode)
If false, UTF-8 unicode characters will be output instead of the escaped unicode character code.