Packages

c

akka.parboiled2.ParserInput

ByteArrayBasedParserInput

class ByteArrayBasedParserInput extends DefaultParserInput

ParserInput reading directly off a byte array. This avoids a separate decoding step but assumes that each byte represents exactly one character, which is encoded by ISO-8859-1! You can therefore use this ParserInput type only if you know that all input will be ISO-8859-1-encoded, or only contains 7-bit ASCII characters (which is a subset of ISO-8859-1)!

Note that this ParserInput type will NOT work with general UTF-8-encoded input as this can contain character representations spanning multiple bytes. However, if you know that your input will only ever contain 7-bit ASCII characters (0x00-0x7F) then UTF-8 is fine, since the first 127 UTF-8 characters are encoded with only one byte that is identical to 7-bit ASCII and ISO-8859-1.

Source
ParserInput.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ByteArrayBasedParserInput
  2. DefaultParserInput
  3. ParserInput
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ByteArrayBasedParserInput(bytes: Array[Byte], endIndex: Int = 0)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ByteArrayBasedParserInput to any2stringadd[ByteArrayBasedParserInput] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ByteArrayBasedParserInput, B)
    Implicit
    This member is added by an implicit conversion from ByteArrayBasedParserInput to ArrowAssoc[ByteArrayBasedParserInput] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def charAt(ix: Int): Char

    Returns the character at the given (zero-based) index.

    Returns the character at the given (zero-based) index. Note: this method is hot and should be small and efficient. A range-check is not required for the parser to work correctly.

    Definition Classes
    ByteArrayBasedParserInputParserInput
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. def ensuring(cond: (ByteArrayBasedParserInput) ⇒ Boolean, msg: ⇒ Any): ByteArrayBasedParserInput
    Implicit
    This member is added by an implicit conversion from ByteArrayBasedParserInput to Ensuring[ByteArrayBasedParserInput] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (ByteArrayBasedParserInput) ⇒ Boolean): ByteArrayBasedParserInput
    Implicit
    This member is added by an implicit conversion from ByteArrayBasedParserInput to Ensuring[ByteArrayBasedParserInput] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): ByteArrayBasedParserInput
    Implicit
    This member is added by an implicit conversion from ByteArrayBasedParserInput to Ensuring[ByteArrayBasedParserInput] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): ByteArrayBasedParserInput
    Implicit
    This member is added by an implicit conversion from ByteArrayBasedParserInput to Ensuring[ByteArrayBasedParserInput] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ByteArrayBasedParserInput to StringFormat[ByteArrayBasedParserInput] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getLine(line: Int): String

    Gets the input line with the given number as a String.

    Gets the input line with the given number as a String. Note: the first line is line number one!

    Definition Classes
    DefaultParserInputParserInput
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. val length: Int

    The number of characters in this input.

    The number of characters in this input. Note: this method is hot and should be small and efficient.

    Definition Classes
    ByteArrayBasedParserInputParserInput
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def sliceCharArray(start: Int, end: Int): Array[Char]

    Returns the characters between index start (inclusively) and end (exclusively) as an Array[Char].

    Returns the characters between index start (inclusively) and end (exclusively) as an Array[Char].

    Definition Classes
    ByteArrayBasedParserInputParserInput
  26. def sliceString(start: Int, end: Int): String

    Returns the characters between index start (inclusively) and end (exclusively) as a String.

    Returns the characters between index start (inclusively) and end (exclusively) as a String.

    Definition Classes
    ByteArrayBasedParserInputParserInput
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  32. def [B](y: B): (ByteArrayBasedParserInput, B)
    Implicit
    This member is added by an implicit conversion from ByteArrayBasedParserInput to ArrowAssoc[ByteArrayBasedParserInput] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from DefaultParserInput

Inherited from ParserInput

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ByteArrayBasedParserInput to any2stringadd[ByteArrayBasedParserInput]

Inherited by implicit conversion StringFormat from ByteArrayBasedParserInput to StringFormat[ByteArrayBasedParserInput]

Inherited by implicit conversion Ensuring from ByteArrayBasedParserInput to Ensuring[ByteArrayBasedParserInput]

Inherited by implicit conversion ArrowAssoc from ByteArrayBasedParserInput to ArrowAssoc[ByteArrayBasedParserInput]

Ungrouped