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.IndexedBytesParserInputINTERNAL 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 bytebyteAt(int offset)intlength()char[]sliceCharArray(int start, int end)java.lang.StringsliceString(int start, int end)
-
-
-
Method Detail
-
byteAt
protected byte byteAt(int offset)
- Specified by:
byteAtin classspray.json.ParserInput.IndexedBytesParserInput
-
length
public int length()
- Specified by:
lengthin interfacespray.json.ParserInput- Specified by:
lengthin classspray.json.ParserInput.IndexedBytesParserInput
-
sliceCharArray
public char[] sliceCharArray(int start, int end)
-
sliceString
public java.lang.String sliceString(int start, int end)
-
-