public class YamlCommentDumper extends YamlCommentReader
YamlCommentReader.ReaderStage, YamlCommentReader.ReadingExplicitStyle, YamlCommentReader.ReadingQuoteStyle| Modifier and Type | Field and Description | 
|---|---|
| protected org.simpleyaml.utils.DumperBus | bus | 
| protected org.simpleyaml.configuration.comments.KeyTree.Node | commentNode | 
| protected org.simpleyaml.configuration.comments.KeyTree.Node | commentNodeFallback | 
| protected StringWriter | explicitBlock | 
| protected org.simpleyaml.configuration.comments.KeyTree.Node | firstListMapElement | 
| protected BufferedWriter | writer | 
| protected YamlCommentMapper | yamlCommentMapper | 
beginExplicit, currentChar, currentLine, currentList, currentNode, explicitNotation, indent, isEscaping, isListElement, isLiteral, key, position, quoteNotation, stage, trimkeyTree, NO_COMMENTS| Constructor and Description | 
|---|
| YamlCommentDumper(YamlCommentMapper yamlCommentMapper,
                 org.simpleyaml.utils.DumperBus.Dumper source,
                 Writer writer) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | appendBlockComment() | 
| protected void | appendBlockComment(String comment) | 
| protected void | appendSideComment() | 
| protected void | appendSideCommentLiteral(String sideComment) | 
| protected void | checkFirstListMapElement(org.simpleyaml.configuration.comments.KeyTree.Node commentNode,
                        org.simpleyaml.configuration.comments.KeyTree.Node readerNode) | 
| protected void | clearSection() | 
| void | close() | 
| void | dump()Merge comments from the comment mapper with lines from the source. | 
| void | getCommentNode(org.simpleyaml.configuration.comments.KeyTree.Node readerNode) | 
| org.simpleyaml.configuration.comments.KeyTree.Node | getNode(String path) | 
| protected void | processLine() | 
| protected void | processMultiline(boolean inQuoteBlock) | 
| protected String | readLine() | 
| protected void | readValue() | 
| protected void | skipMultiline() | 
canStartComment, canStartSpecialIndent, checkSpecialChars, checkSpecialLines, clearCurrentNode, clearCurrentNodeIfNoComments, endExplicitBlock, endExplicitNotation, hasChar, hasKey, hasNext, inQuote, isBlank, isComment, isExplicit, isExplicitChar, isInQuote, isListChar, isLiteralChar, isMultiline, isSectionEnd, isSectionKey, isSpace, nextChar, nextIsSpace, nextLine, peek, readIndent, readIndent, readKey, readKeyMultiline, readTag, readValueMultiline, skipToEnd, toString, track, track, trackExplicit, trackListElementclearNode, clearNodeIfNoComments, getComment, getComment, getKeyTree, getOrAddNode, getPriorityNode, getRawComment, getRawComment, options, removeComment, removeComment, setComment, setFormattedComment, setRawCommentprotected final YamlCommentMapper yamlCommentMapper
protected final org.simpleyaml.utils.DumperBus bus
protected BufferedWriter writer
protected StringWriter explicitBlock
protected org.simpleyaml.configuration.comments.KeyTree.Node commentNode
protected org.simpleyaml.configuration.comments.KeyTree.Node commentNodeFallback
protected org.simpleyaml.configuration.comments.KeyTree.Node firstListMapElement
public YamlCommentDumper(YamlCommentMapper yamlCommentMapper, org.simpleyaml.utils.DumperBus.Dumper source, Writer writer)
public void dump()
          throws IOException
The result is written to the writer.
IOException - if any problem arise while reading or writingprotected String readLine() throws IOException
readLine in class YamlCommentReaderIOExceptionprotected void processLine()
                    throws IOException
processLine in class YamlCommentReaderIOExceptionprotected void clearSection()
public void getCommentNode(org.simpleyaml.configuration.comments.KeyTree.Node readerNode)
protected void checkFirstListMapElement(org.simpleyaml.configuration.comments.KeyTree.Node commentNode,
                                        org.simpleyaml.configuration.comments.KeyTree.Node readerNode)
public org.simpleyaml.configuration.comments.KeyTree.Node getNode(String path)
getNode in class YamlCommentMapperprotected void appendBlockComment()
                           throws IOException
IOExceptionprotected void appendBlockComment(String comment) throws IOException
IOExceptionprotected void appendSideComment()
                          throws IOException
IOExceptionprotected void appendSideCommentLiteral(String sideComment) throws IOException
IOExceptionprotected void readValue()
                  throws IOException
readValue in class YamlCommentReaderIOExceptionprotected void skipMultiline()
                      throws IOException
IOExceptionprotected void processMultiline(boolean inQuoteBlock)
                         throws IOException
processMultiline in class YamlCommentReaderIOExceptionpublic void close()
           throws IOException
IOExceptionCopyright © 2023. All rights reserved.