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 APIParserInput 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
Constructors Constructor Description SprayJsonByteStringParserInput(akka.util.ByteString bytes)
-
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)
-
-
-
Method Detail
-
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
public java.lang.String sliceString(int start, int end)
-
-