Package org.vast.json
Class JsonReaderWithBuffer
java.lang.Object
com.google.gson.stream.JsonReader
org.vast.json.JsonReaderWithBuffer
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class JsonReaderWithBuffer
extends com.google.gson.stream.JsonReader
Implementation of JsonReader to re-stream JSON data previously buffered while waiting for a specific member name/key.
- Since:
- Sep 29, 2023
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.gson.stream.JsonReader
close, getPreviousPath, getStrictness, isLenient, setLenient, setStrictness, toString
-
Constructor Details
-
JsonReaderWithBuffer
public JsonReaderWithBuffer(com.google.gson.stream.JsonReader delegate)
-
-
Method Details
-
buffer
Buffer the next object value so it can be replayed later- Parameters:
name
- member name
-
startReplay
public void startReplay() -
nextName
- Overrides:
nextName
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
hasNext
- Overrides:
hasNext
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
maybeCloseTempReader
- Throws:
IOException
-
endObject
- Overrides:
endObject
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
peek
- Overrides:
peek
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
beginArray
- Overrides:
beginArray
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
endArray
- Overrides:
endArray
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
beginObject
- Overrides:
beginObject
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
nextString
- Overrides:
nextString
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
nextBoolean
- Overrides:
nextBoolean
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
nextNull
- Overrides:
nextNull
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
nextDouble
- Overrides:
nextDouble
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
nextLong
- Overrides:
nextLong
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
nextInt
- Overrides:
nextInt
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
skipValue
- Overrides:
skipValue
in classcom.google.gson.stream.JsonReader
- Throws:
IOException
-
getPath
- Overrides:
getPath
in classcom.google.gson.stream.JsonReader
-