Class SprayJsonByteStringParserInput

  • All Implemented Interfaces:
    spray.json.ParserInput

    public final class SprayJsonByteStringParserInput
    extends spray.json.ParserInput.IndexedBytesParserInput
    INTERNAL API

    ParserInput reading directly off a ByteString. (Based on the ByteArrayBasedParserInput) that avoids a separate decoding step.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface spray.json.ParserInput

        spray.json.ParserInput.ByteArrayBasedParserInput, spray.json.ParserInput.CharArrayBasedParserInput, spray.json.ParserInput.DefaultParserInput, spray.json.ParserInput.IndexedBytesParserInput, spray.json.ParserInput.Line, spray.json.ParserInput.Line$, spray.json.ParserInput.StringBasedParserInput
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected byte byteAt​(int offset)  
      int length()  
      char[] sliceCharArray​(int start, int end)  
      java.lang.String sliceString​(int start, int end)  
      • Methods inherited from class spray.json.ParserInput.IndexedBytesParserInput

        nextChar, nextUtf8Char
      • Methods inherited from class spray.json.ParserInput.DefaultParserInput

        _cursor, _cursor_$eq, cursor, getLine
      • Methods inherited from class java.lang.Object

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

      • SprayJsonByteStringParserInput

        public SprayJsonByteStringParserInput​(akka.util.ByteString bytes)
    • Method Detail

      • byteAt

        protected byte byteAt​(int offset)
        Specified by:
        byteAt in class spray.json.ParserInput.IndexedBytesParserInput
      • length

        public int length()
        Specified by:
        length in interface spray.json.ParserInput
        Specified by:
        length in class spray.json.ParserInput.IndexedBytesParserInput
      • sliceCharArray

        public char[] sliceCharArray​(int start,
                                     int end)
      • sliceString

        public java.lang.String sliceString​(int start,
                                            int end)