Class PropertiesParser


  • final class PropertiesParser
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertiesParser​(java.lang.String source, java.lang.String file, Reporter reporter, java.util.Properties properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private char backslash()  
      private java.lang.String context()  
      private void error​(java.lang.String msg, java.lang.Object... args)  
      (package private) boolean hasNext()  
      boolean isEmptyOrComment​(char c)  
      private boolean isIn​(byte delimeters)  
      private java.lang.String key()  
      (package private) char next()  
      (package private) void parse()  
      (package private) char peek()  
      (package private) void skip​(byte delimeters)  
      void skipLine()  
      private void skipWhitespace()  
      private java.lang.String token​(byte delimeters, boolean check)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • source

        private final char[] source
      • length

        private final int length
      • reporter

        private final Reporter reporter
      • file

        private final java.lang.String file
      • INFO

        private static final byte[] INFO
      • n

        private int n
      • line

        private int line
      • pos

        private int pos
      • marker

        private int marker
      • current

        private char current
      • properties

        private java.util.Properties properties
      • validKey

        private boolean validKey
      • continuation

        private boolean continuation
    • Constructor Detail

      • PropertiesParser

        PropertiesParser​(java.lang.String source,
                         java.lang.String file,
                         Reporter reporter,
                         java.util.Properties properties)
    • Method Detail

      • hasNext

        boolean hasNext()
      • next

        char next()
      • skip

        void skip​(byte delimeters)
      • peek

        char peek()
      • parse

        void parse()
      • skipWhitespace

        private void skipWhitespace()
      • isEmptyOrComment

        public boolean isEmptyOrComment​(char c)
      • skipLine

        public void skipLine()
      • token

        private final java.lang.String token​(byte delimeters,
                                             boolean check)
      • key

        private final java.lang.String key()
      • isIn

        private final boolean isIn​(byte delimeters)
      • backslash

        private final char backslash()
      • error

        private void error​(java.lang.String msg,
                           java.lang.Object... args)
      • context

        private java.lang.String context()