Class SimpleReaderSecondary

java.lang.Object
components.simplereader.SimpleReaderSecondary
All Implemented Interfaces:
SimpleReader, SimpleReaderKernel, Standard<SimpleReader>, AutoCloseable
Direct Known Subclasses:
SimpleReader1L

public abstract class SimpleReaderSecondary extends Object implements SimpleReader
Layered implementations of secondary methods for SimpleReader.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Reads a line from this.content, up to and including the first line separator (or the end of the stream), where the string before the line separator is the string representation of a boolean, and returns that boolean.
    double
    Reads a line from this.content, up to and including the first line separator (or the end of the stream), where the string before the line separator is the string representation of a double, and returns that double.
    int
    Reads a line from this.content, up to and including the first line separator (or the end of the stream), where the string before the line separator is the string representation of an int, and returns that int.
    Reads a line from this.content, up to and including the first line separator (or the end of the stream), and returns everything up to the line separator (if any).
    long
    Reads a line from this.content, up to and including the first line separator (or the end of the stream), where the string before the line separator is the string representation of a long, and returns that long.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface components.simplereader.SimpleReaderKernel

    atEOS, close, isOpen, name, peek, read

    Methods inherited from interface components.standard.Standard

    clear, newInstance, transferFrom
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • nextLine

      public String nextLine()
      Description copied from interface: SimpleReader
      Reads a line from this.content, up to and including the first line separator (or the end of the stream), and returns everything up to the line separator (if any).
      Specified by:
      nextLine in interface SimpleReader
      Returns:
      the line read without the line separator
    • nextInteger

      public int nextInteger()
      Description copied from interface: SimpleReader
      Reads a line from this.content, up to and including the first line separator (or the end of the stream), where the string before the line separator is the string representation of an int, and returns that int.
      Specified by:
      nextInteger in interface SimpleReader
      Returns:
      the int read
    • nextLong

      public long nextLong()
      Description copied from interface: SimpleReader
      Reads a line from this.content, up to and including the first line separator (or the end of the stream), where the string before the line separator is the string representation of a long, and returns that long.
      Specified by:
      nextLong in interface SimpleReader
      Returns:
      the long read
    • nextBoolean

      public boolean nextBoolean()
      Description copied from interface: SimpleReader
      Reads a line from this.content, up to and including the first line separator (or the end of the stream), where the string before the line separator is the string representation of a boolean, and returns that boolean.
      Specified by:
      nextBoolean in interface SimpleReader
      Returns:
      the boolean read
    • nextDouble

      public double nextDouble()
      Description copied from interface: SimpleReader
      Reads a line from this.content, up to and including the first line separator (or the end of the stream), where the string before the line separator is the string representation of a double, and returns that double.
      Specified by:
      nextDouble in interface SimpleReader
      Returns:
      the double read