All Implemented Interfaces:
Closeable, AutoCloseable

  • Field Summary

  • Constructor Summary

    Constructors

    Deprecated.

    Constructs a newline number input stream that reads its input from the specified input stream.

  • Method Summary

    int

    available()

    Deprecated.

    Returns the number of bytes that can be read from this input stream without blocking.

    int

    Deprecated.

    Returns the current line number.

    void

    mark(int readlimit)

    Deprecated.

    Marks the current position in this input stream.

    int

    read()

    Deprecated.

    Reads the next byte of data from this input stream.

    int

    read(byte[] b, int off, int len)

    Deprecated.

    Reads up to len bytes of data from this input stream into an array of bytes.

    void

    reset()

    Deprecated.

    Repositions this stream to the position at the time the mark method was last called on this input stream.

    void

    setLineNumber(int lineNumber)

    Deprecated.

    Sets the line number to the specified argument.

    long

    skip(long n)

    Deprecated.

    Skips over and discards n bytes of data from this input stream.

  • Constructor Details

    • LineNumberInputStream

  • Method Details

    • read

    • read

    • skip

    • setLineNumber

    • getLineNumber

    • available

    • mark

    • reset