Package sk.antons.json.source
Class ReaderSource
java.lang.Object
sk.antons.json.source.ReaderSource
- All Implemented Interfaces:
JsonSource
Json source created from Reader
- Author:
- antons
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcurrent()current charstatic ReaderSourcevoidmove()move to next charintnext()next charlast recorded contentintstarts recording of charactersintstops recording of characters
-
Constructor Details
-
ReaderSource
-
-
Method Details
-
instance
-
current
public int current()Description copied from interface:JsonSourcecurrent char- Specified by:
currentin interfaceJsonSource- Returns:
- current char
-
next
public int next()Description copied from interface:JsonSourcenext char- Specified by:
nextin interfaceJsonSource- Returns:
- next char
-
move
public void move()Description copied from interface:JsonSourcemove to next char- Specified by:
movein interfaceJsonSource
-
startRecording
public int startRecording()Description copied from interface:JsonSourcestarts recording of characters- Specified by:
startRecordingin interfaceJsonSource- Returns:
- position of recording.
-
stopRecording
public int stopRecording()Description copied from interface:JsonSourcestops recording of characters- Specified by:
stopRecordingin interfaceJsonSource- Returns:
- current position.
-
recordedContent
Description copied from interface:JsonSourcelast recorded content- Specified by:
recordedContentin interfaceJsonSource- Returns:
-