public final class SprayJsonByteStringParserInput
extends spray.json.ParserInput.IndexedBytesParserInput
ParserInput reading directly off a ByteString. (Based on the ByteArrayBasedParserInput) that avoids a separate decoding step.
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 and Description |
---|
SprayJsonByteStringParserInput(org.apache.pekko.util.ByteString bytes) |
Modifier and Type | Method and Description |
---|---|
protected byte |
byteAt(int offset) |
int |
length() |
char[] |
sliceCharArray(int start,
int end) |
java.lang.String |
sliceString(int start,
int end) |
_cursor_$eq, _cursor, cursor, getLine
public SprayJsonByteStringParserInput(org.apache.pekko.util.ByteString bytes)
protected byte byteAt(int offset)
byteAt
in class spray.json.ParserInput.IndexedBytesParserInput
public int length()
length
in interface spray.json.ParserInput
length
in class spray.json.ParserInput.IndexedBytesParserInput
public char[] sliceCharArray(int start, int end)
public java.lang.String sliceString(int start, int end)