Class ReaderSource

  • All Implemented Interfaces:
    JsonSource

    public class ReaderSource
    extends Object
    implements JsonSource
    Json source created from Reader
    Author:
    antons
    • Constructor Detail

      • ReaderSource

        public ReaderSource​(Reader reader)
    • Method Detail

      • current

        public int current()
        Description copied from interface: JsonSource
        current char
        Specified by:
        current in interface JsonSource
        Returns:
        current char
      • next

        public int next()
        Description copied from interface: JsonSource
        next char
        Specified by:
        next in interface JsonSource
        Returns:
        next char
      • move

        public void move()
        Description copied from interface: JsonSource
        move to next char
        Specified by:
        move in interface JsonSource
      • startRecording

        public int startRecording()
        Description copied from interface: JsonSource
        starts recording of characters
        Specified by:
        startRecording in interface JsonSource
        Returns:
        position of recording.
      • stopRecording

        public int stopRecording()
        Description copied from interface: JsonSource
        stops recording of characters
        Specified by:
        stopRecording in interface JsonSource
        Returns:
        current position.