final class ByteStringParserInput extends DefaultParserInput
ParserInput reading directly off a ByteString. (Based on the ByteArrayBasedParserInput)
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.
- Alphabetic
- By Inheritance
- ByteStringParserInput
- DefaultParserInput
- ParserInput
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ByteStringParserInput(bytes: ByteString)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ByteStringParserInput to any2stringadd[ByteStringParserInput] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ByteStringParserInput, B)
- Implicit
- This member is added by an implicit conversion from ByteStringParserInput to ArrowAssoc[ByteStringParserInput] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
charAt(ix: Int): Char
- Definition Classes
- ByteStringParserInput → ParserInput
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
ensuring(cond: (ByteStringParserInput) ⇒ Boolean, msg: ⇒ Any): ByteStringParserInput
- Implicit
- This member is added by an implicit conversion from ByteStringParserInput to Ensuring[ByteStringParserInput] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ByteStringParserInput) ⇒ Boolean): ByteStringParserInput
- Implicit
- This member is added by an implicit conversion from ByteStringParserInput to Ensuring[ByteStringParserInput] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): ByteStringParserInput
- Implicit
- This member is added by an implicit conversion from ByteStringParserInput to Ensuring[ByteStringParserInput] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ByteStringParserInput
- Implicit
- This member is added by an implicit conversion from ByteStringParserInput to Ensuring[ByteStringParserInput] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ByteStringParserInput to StringFormat[ByteStringParserInput] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getLine(line: Int): String
- Definition Classes
- DefaultParserInput → ParserInput
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
length: Int
- Definition Classes
- ByteStringParserInput → ParserInput
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
sliceCharArray(start: Int, end: Int): Array[Char]
- Definition Classes
- ByteStringParserInput → ParserInput
-
def
sliceString(start: Int, end: Int): String
- Definition Classes
- ByteStringParserInput → ParserInput
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
→[B](y: B): (ByteStringParserInput, B)
- Implicit
- This member is added by an implicit conversion from ByteStringParserInput to ArrowAssoc[ByteStringParserInput] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc