Interface SvetovidReader

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
AbstractSvetovidReader, DefaultSvetovidReader, StandardSvetovidReader

public interface SvetovidReader extends Closeable
This interface provides methods that simplify reading the program input data for beginner programmers. Exception handling is not necessary as when it is turned off by setThrowingExceptions(boolean) many operations are returning default values on any errors. If necessary, the last raised exception can be retrieved using getLastException() method.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes this reader and releases any resources associated with the underlying source.
    Returns the exception raised in the last operation; if the operation was successful and no exception was raised, returns null.
    Returns the currently used pattern for recognizing whitespace.
    boolean
    Checks whether this reader has data to be read.
    boolean
    Checks whether this reader has no more data to be read.
    boolean
    Returns the indicator whether this reader will throw exceptions on I/O operation errors or just return default values.
    Reads all remaining content and returns it as a string.
    Read all remaining lines and returns them as an array of strings.
    boolean
    Reads one token and converts it to a boolean value.
    boolean[]
    Reads one line, separates it into tokens and converts them to boolean values.
    Reads one line, separates it into tokens and converts them to boolean values.
    Reads one token and converts it to a boolean value.
    boolean[][]
    Reads multiple lines and converts the data to a boolean matrix.
    Reads multiple lines and converts the data to a boolean matrix.
    byte
    Reads one token and converts it to a byte value.
    byte[]
    Reads one line, separates it into tokens and converts them to byte values.
    Reads one line, separates it into tokens and converts them to byte values.
    Reads one token and converts it to a byte value.
    byte[][]
    Reads multiple lines and converts the data to a byte matrix.
    Byte[][]
    Reads multiple lines and converts the data to a byte matrix.
    char
    Reads one token and converts it to a character value.
    char[]
    Reads one line, separates it into tokens and converts them to character values.
    Reads one line, separates it into tokens and converts them to character values.
    Reads one token and converts it to a character value.
    char[][]
    Reads multiple lines and converts the data to a character matrix.
    Reads multiple lines and converts the data to a character matrix.
    double
    Reads one token and converts it to a double-precision floating-point value.
    double[]
    Reads one line, separates it into tokens and converts them to double-precision floating-point values.
    Reads one line, separates it into tokens and converts them to double-precision floating-point values.
    Reads one token and converts it to a double-precision floating-point value.
    double[][]
    Reads multiple lines and converts the data to a double-precision floating-point matrix.
    Double[][]
    Reads multiple lines and converts the data to a double-precision floating-point matrix.
    float
    Reads one token and converts it to a floating-point value.
    float[]
    Reads one line, separates it into tokens and converts them to floating-point values.
    Reads one line, separates it into tokens and converts them to floating-point values.
    Reads one token and converts it to a floating-point value.
    float[][]
    Reads multiple lines and converts the data to a floating-point matrix.
    Float[][]
    Reads multiple lines and converts the data to a floating-point matrix.
    int
    Reads one token and converts it to an integer value.
    int[]
    Reads one line, separates it into tokens and converts them to integer values.
    Reads one line, separates it into tokens and converts them to integer values.
    Reads one token and converts it to an integer value.
    int[][]
    Reads multiple lines and converts the data to an integer matrix.
    Reads multiple lines and converts the data to an integer matrix.
    Reads a line of text and returns it as a string.
    long
    Reads one token and converts it to a long integer value.
    long[]
    Reads one line, separates it into tokens and converts them to long integer values.
    Reads one line, separates it into tokens and converts them to long integer values.
    Reads one token and converts it to a long integer value.
    long[][]
    Reads multiple lines and converts the data to a long integer matrix.
    Long[][]
    Reads multiple lines and converts the data to a long integer matrix.
    Reads a JSON (JavaScript Object Notation) formatted object.
    short
    Reads one token and converts it to a short integer value.
    short[]
    Reads one line, separates it into tokens and converts them to short integer values.
    Reads one line, separates it into tokens and converts them to short integer values.
    Reads one token and converts it to a short integer value.
    short[][]
    Reads multiple lines and converts the data to a shot integer matrix.
    Short[][]
    Reads multiple lines and converts the data to a shot integer matrix.
    Reads one token and returns it as a string value.
    Reads one line, separates it into tokens and returns them as string values.
    String[][]
    Reads multiple lines and converts the data to a string matrix.
    void
    setThrowingExceptions(boolean shouldThrow)
    Configures whether this reader should throw exceptions on I/O operation errors or just return default values.
    void
    setWhitespace(Pattern whitespace)
    Sets the pattern used to recognize whitespace.