uk.co.bigbeeconsultants.bconfig

Parser

final class Parser extends ParserJ

Constructs a parser around an input stream, which may be null. If null, the parser constructs an empty map, otherwise a map is constructed containing the key/value pairs from the input stream's data.

The constructor loads a text file containing configuration strings and splits the strings into key/value pairs. The text files must be UTF, and may use any of the UTF byte-order marks to differentiate their contents. See UTF BOM.

The input stream will always get closed by the Parser constructor (provided it isn't null).

Typically, this class is only used indirectly; the Parser object provides convenience methods for dealing with various sources.

Note that this implementation is simply a wrapper for the Java ParserJ. As such, its use is deprecated. It is possible that the class (but not the object) will be deleted in a future version.

Annotations
@throws( classOf[IOException] )
Linear Supertypes
ParserJ, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Parser
  2. ParserJ
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Parser(in: InputStream, name: String, delimiter: Char = '=', commentStart: String = "#")

    in

    the input stream or null

    name

    a string used to identify the source if an exception arises

    delimiter

    specifies the delimiter between keys and their values (default is '='). Whitespace surrounding the delimiter is ignored.

    commentStart

    specifies the delimiter that marks the start of comments, except within quoted strings (default is "#").

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def data: ListMap[String, String]

  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  17. def toString(): String

    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ParserJ

Inherited from AnyRef

Inherited from Any

Ungrouped