Class SprayJsonByteStringParserInput
java.lang.Object
spray.json.ParserInput.DefaultParserInput
spray.json.ParserInput.IndexedBytesParserInput
akka.http.scaladsl.marshallers.sprayjson.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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte
byteAt
(int offset) int
length()
char[]
sliceCharArray
(int start, int end) 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
-
Constructor Details
-
SprayJsonByteStringParserInput
public SprayJsonByteStringParserInput(akka.util.ByteString bytes)
-
-
Method Details
-
byteAt
protected byte byteAt(int offset) - Specified by:
byteAt
in classspray.json.ParserInput.IndexedBytesParserInput
-
length
public int length()- Specified by:
length
in interfacespray.json.ParserInput
- Specified by:
length
in classspray.json.ParserInput.IndexedBytesParserInput
-
sliceCharArray
public char[] sliceCharArray(int start, int end) -
sliceString
-