Class

akka.http.impl.util

ByteStringParserInput

Related Doc: package util

Permalink

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.

Source
ByteStringParserInput.scala
Linear Supertypes
DefaultParserInput, ParserInput, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ByteStringParserInput
  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 ByteStringParserInput(bytes: ByteString)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ByteStringParserInput to any2stringadd[ByteStringParserInput] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ByteStringParserInput, B)

    Permalink
    Implicit information
    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()
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def charAt(ix: Int): Char

    Permalink
    Definition Classes
    ByteStringParserInput → ParserInput
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def ensuring(cond: (ByteStringParserInput) ⇒ Boolean, msg: ⇒ Any): ByteStringParserInput

    Permalink
    Implicit information
    This member is added by an implicit conversion from ByteStringParserInput to Ensuring[ByteStringParserInput] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (ByteStringParserInput) ⇒ Boolean): ByteStringParserInput

    Permalink
    Implicit information
    This member is added by an implicit conversion from ByteStringParserInput to Ensuring[ByteStringParserInput] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): ByteStringParserInput

    Permalink
    Implicit information
    This member is added by an implicit conversion from ByteStringParserInput to Ensuring[ByteStringParserInput] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): ByteStringParserInput

    Permalink
    Implicit information
    This member is added by an implicit conversion from ByteStringParserInput to Ensuring[ByteStringParserInput] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    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()
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getLine(line: Int): String

    Permalink
    Definition Classes
    DefaultParserInput → ParserInput
  19. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  21. def length: Int

    Permalink
    Definition Classes
    ByteStringParserInput → ParserInput
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def sliceCharArray(start: Int, end: Int): Array[Char]

    Permalink
    Definition Classes
    ByteStringParserInput → ParserInput
  26. def sliceString(start: Int, end: Int): String

    Permalink
    Definition Classes
    ByteStringParserInput → ParserInput
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def [B](y: B): (ByteStringParserInput, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ByteStringParserInput to ArrowAssoc[ByteStringParserInput] 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 ByteStringParserInput to any2stringadd[ByteStringParserInput]

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

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

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

Ungrouped