Package 

Interface Source


  • 
    public interface Source
    
                        

    Stream that allow to read Chars from.

    • Method Summary

      Modifier and Type Method Description
      abstract Boolean canRead() Check if there are more characters to read.
      abstract Character read() Read one Char from the stream.
      abstract Character peek() Return the next Char from the stream without actually reading it.
      abstract Unit mark() Mark the current position in the stream.
      abstract Unit unmark() Remove the last mark without resetting the stream to the marked position.
      abstract Unit reset() Reset the stream to the last marked position (and remove the mark).
      abstract Integer getOffset() Current read offset in the source.
      • Methods inherited from class kotlinx.serialization.csv.decode.Source

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • canRead

         abstract Boolean canRead()

        Check if there are more characters to read.

      • peek

         abstract Character peek()

        Return the next Char from the stream without actually reading it.

      • mark

         abstract Unit mark()

        Mark the current position in the stream. Calling reset afterwards resets the stream to this marked position.

        Calling mark must be proceeded by a call to reset or unmark.

      • unmark

         abstract Unit unmark()

        Remove the last mark without resetting the stream to the marked position.

      • reset

         abstract Unit reset()

        Reset the stream to the last marked position (and remove the mark).