Class ExtendedProperties.PropertiesReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Readable
    Enclosing class:
    ExtendedProperties

    static class ExtendedProperties.PropertiesReader
    extends java.io.LineNumberReader
    This class is used to read properties lines. These lines do not terminate with new-line chars but rather when there is no backslash sign a the end of the line. This is used to concatenate multiple lines for readability.
    • Field Summary

      • Fields inherited from class java.io.Reader

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertiesReader​(java.io.Reader reader)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String readProperty()
      Read a property.
      • Methods inherited from class java.io.LineNumberReader

        getLineNumber, mark, read, read, readLine, reset, setLineNumber, skip
      • Methods inherited from class java.io.BufferedReader

        close, lines, markSupported, ready
      • Methods inherited from class java.io.Reader

        nullReader, read, read, transferTo
      • Methods inherited from class java.lang.Object

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

      • PropertiesReader

        public PropertiesReader​(java.io.Reader reader)
        Constructor.
        Parameters:
        reader - A Reader.
    • Method Detail

      • readProperty

        public java.lang.String readProperty()
                                      throws java.io.IOException
        Read a property.
        Returns:
        a String property
        Throws:
        java.io.IOException - if there is difficulty reading the source.