Class YamlCommentReader

java.lang.Object
org.simpleyaml.configuration.comments.YamlCommentMapper
org.simpleyaml.configuration.comments.YamlCommentReader
All Implemented Interfaces:
Closeable, AutoCloseable, Commentable
Direct Known Subclasses:
YamlCommentDumper, YamlCommentParser

public abstract class YamlCommentReader extends YamlCommentMapper implements Closeable
  • Field Details

  • Constructor Details

  • Method Details

    • readLine

      protected abstract String readLine() throws IOException
      Throws:
      IOException
    • nextLine

      protected boolean nextLine() throws IOException
      Throws:
      IOException
    • nextChar

      protected boolean nextChar()
    • hasChar

      protected boolean hasChar()
    • hasNext

      protected boolean hasNext()
    • peek

      protected char peek(int offset)
    • isBlank

      protected boolean isBlank()
    • isSpace

      public static boolean isSpace(char c)
    • isComment

      protected boolean isComment()
    • canStartComment

      protected boolean canStartComment()
    • isInQuote

      protected boolean isInQuote()
    • isExplicit

      protected boolean isExplicit()
    • endExplicitNotation

      protected void endExplicitNotation() throws IOException
      Throws:
      IOException
    • processLine

      protected void processLine() throws IOException
      Throws:
      IOException
    • processMultiline

      protected void processMultiline(boolean inQuoteBlock) throws IOException
      Throws:
      IOException
    • endExplicitBlock

      protected void endExplicitBlock() throws IOException
      Throws:
      IOException
    • isLiteralChar

      protected boolean isLiteralChar()
    • checkSpecialLines

      protected void checkSpecialLines(boolean wasLiteral, int indent) throws IOException
      Throws:
      IOException
    • checkSpecialChars

      protected boolean checkSpecialChars()
    • inQuote

      protected void inQuote(YamlCommentReader.ReadingQuoteStyle quoteStyle)
    • isSectionKey

      protected boolean isSectionKey()
    • readTag

      protected void readTag()
    • readIndent

      protected int readIndent(boolean special)
    • readIndent

      protected int readIndent()
    • canStartSpecialIndent

      protected boolean canStartSpecialIndent(int indent)
    • isListChar

      protected boolean isListChar()
    • isExplicitChar

      protected boolean isExplicitChar()
    • nextIsSpace

      protected final boolean nextIsSpace()
    • isMultiline

      protected final boolean isMultiline()
    • hasKey

      protected boolean hasKey()
    • readKey

      protected String readKey() throws IOException
      Throws:
      IOException
    • readKeyMultiline

      protected void readKeyMultiline(StringBuilder keyBuilder) throws IOException
      Throws:
      IOException
    • readValue

      protected void readValue() throws IOException
      Throws:
      IOException
    • readValueMultiline

      protected void readValueMultiline() throws IOException
      Throws:
      IOException
    • skipToEnd

      protected void skipToEnd()
    • isSectionEnd

      protected boolean isSectionEnd()
    • track

      protected KeyTree.Node track() throws IOException
      Throws:
      IOException
    • trackListElement

      protected void trackListElement()
    • trackListElement

      protected void trackListElement(int indent)
    • trackExplicit

      protected KeyTree.Node trackExplicit() throws IOException
      Throws:
      IOException
    • track

      protected KeyTree.Node track(int indent, String key)
    • clearCurrentNode

      protected void clearCurrentNode()
    • clearCurrentNodeIfNoComments

      protected void clearCurrentNodeIfNoComments()
    • toString

      public String toString()
      Overrides:
      toString in class Object