类 OriginTrackedPropertiesLoader.CharacterReader

  • 所有已实现的接口:
    java.io.Closeable, java.lang.AutoCloseable
    封闭类:
    OriginTrackedPropertiesLoader

    private static class OriginTrackedPropertiesLoader.CharacterReader
    extends java.lang.Object
    implements java.io.Closeable
    Reads characters from the source resource, taking care of skipping comments, handling multi-line values and tracking '\' escapes.
    • 字段详细资料

      • escapes

        private final java.lang.String[] escapes
      • reader

        private final java.io.LineNumberReader reader
      • columnNumber

        private int columnNumber
      • escaped

        private boolean escaped
      • character

        private int character
    • 构造器详细资料

      • CharacterReader

        CharacterReader​(org.springframework.core.io.Resource resource)
                 throws java.io.IOException
        抛出:
        java.io.IOException
    • 方法详细资料

      • close

        public void close()
                   throws java.io.IOException
        指定者:
        close 在接口中 java.lang.AutoCloseable
        指定者:
        close 在接口中 java.io.Closeable
        抛出:
        java.io.IOException
      • read

        public boolean read()
                     throws java.io.IOException
        抛出:
        java.io.IOException
      • read

        public boolean read​(boolean wrappedLine)
                     throws java.io.IOException
        抛出:
        java.io.IOException
      • skipLeadingWhitespace

        private void skipLeadingWhitespace()
                                    throws java.io.IOException
        抛出:
        java.io.IOException
      • skipComment

        private void skipComment()
                          throws java.io.IOException
        抛出:
        java.io.IOException
      • readEscaped

        private void readEscaped()
                          throws java.io.IOException
        抛出:
        java.io.IOException
      • readUnicode

        private void readUnicode()
                          throws java.io.IOException
        抛出:
        java.io.IOException
      • isWhiteSpace

        public boolean isWhiteSpace()
      • isEndOfFile

        public boolean isEndOfFile()
      • isEndOfLine

        public boolean isEndOfLine()
      • isListDelimiter

        public boolean isListDelimiter()
      • isPropertyDelimiter

        public boolean isPropertyDelimiter()
      • getCharacter

        public char getCharacter()
      • getLocation

        public org.springframework.boot.origin.TextResourceOrigin.Location getLocation()