Package components.simplereader
Class SimpleReaderSecondary
java.lang.Object
components.simplereader.SimpleReaderSecondary
- All Implemented Interfaces:
SimpleReader,SimpleReaderKernel,Standard<SimpleReader>,AutoCloseable
- Direct Known Subclasses:
SimpleReader1L
Layered implementations of secondary methods for
SimpleReader.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReads a line fromthis.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 aboolean, and returns thatboolean.doubleReads a line fromthis.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 adouble, and returns thatdouble.intReads a line fromthis.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 anint, and returns thatint.nextLine()Reads a line fromthis.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).longnextLong()Reads a line fromthis.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 along, and returns thatlong.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface components.simplereader.SimpleReaderKernel
atEOS, close, isOpen, name, peek, readMethods inherited from interface components.standard.Standard
clear, newInstance, transferFrom
-
Constructor Details
-
SimpleReaderSecondary
public SimpleReaderSecondary()
-
-
Method Details
-
toString
-
nextLine
Description copied from interface:SimpleReaderReads a line fromthis.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:
nextLinein interfaceSimpleReader- Returns:
- the line read without the line separator
-
nextInteger
Description copied from interface:SimpleReaderReads a line fromthis.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 anint, and returns thatint.- Specified by:
nextIntegerin interfaceSimpleReader- Returns:
- the
intread
-
nextLong
Description copied from interface:SimpleReaderReads a line fromthis.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 along, and returns thatlong.- Specified by:
nextLongin interfaceSimpleReader- Returns:
- the
longread
-
nextBoolean
Description copied from interface:SimpleReaderReads a line fromthis.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 aboolean, and returns thatboolean.- Specified by:
nextBooleanin interfaceSimpleReader- Returns:
- the
booleanread
-
nextDouble
Description copied from interface:SimpleReaderReads a line fromthis.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 adouble, and returns thatdouble.- Specified by:
nextDoublein interfaceSimpleReader- Returns:
- the
doubleread
-