Package org.svetovid.io
Class DefaultSvetovidReader
java.lang.Object
org.svetovid.io.AbstractSvetovidReader
org.svetovid.io.DefaultSvetovidReader
- All Implemented Interfaces:
Closeable,AutoCloseable,SvetovidReader
- Direct Known Subclasses:
StandardSvetovidReader
This class provides a most commonly used implementation for the
SvetovidReader interface.
- Author:
- Ivan Pribela
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.svetovid.io.AbstractSvetovidReader
AbstractSvetovidReader.TokenType -
Field Summary
FieldsFields inherited from class org.svetovid.io.AbstractSvetovidReader
lastException, line, throwingExceptions, tokenContent, tokenType, whitespace -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newSvetovidReaderthat uses the specified reader for input.Creates a newSvetovidReaderthat uses the specified input stream for input.Creates a newSvetovidReaderthat uses the specified reader for input.Creates a newSvetovidReaderthat uses the specified string for input. -
Method Summary
Methods inherited from class org.svetovid.io.AbstractSvetovidReader
getLastException, getWhitespace, handleAnyException, handleFormatException, hasMore, isCharInNumber, isCharWhitespace, isCharWhitespaceOrSymbol, isEmpty, isThrowingExceptions, nextArray, nextChar, nextLiteral, nextNumber, nextPair, nextString, nextToken, nextValue, parseBool, parseChar, readAll, readAllLines, readBool, readBoolArray, readBoolArrayBoxed, readBoolBoxed, readBoolMatrix, readBoolMatrixBoxed, readByte, readByteArray, readByteArrayBoxed, readByteBoxed, readByteMatrix, readByteMatrixBoxed, readChar, readCharArray, readCharArrayBoxed, readCharBoxed, readCharMatrix, readCharMatrixBoxed, readDouble, readDoubleArray, readDoubleArrayBoxed, readDoubleBoxed, readDoubleMatrix, readDoubleMatrixBoxed, readFloat, readFloatArray, readFloatArrayBoxed, readFloatBoxed, readFloatMatrix, readFloatMatrixBoxed, readInt, readIntArray, readIntArrayBoxed, readIntBoxed, readIntMatrix, readIntMatrixBoxed, readLine, readLong, readLongArray, readLongArrayBoxed, readLongBoxed, readLongMatrix, readLongMatrixBoxed, readNextObject, readObject, readShort, readShortArray, readShortArrayBoxed, readShortBoxed, readShortMatrix, readShortMatrixBoxed, readToken, readTokenArray, readTokenMatrix, returnChar, setThrowingExceptions, setWhitespace, wrapUpIOException
-
Field Details
-
reader
-
-
Constructor Details
-
DefaultSvetovidReader
Creates a newSvetovidReaderthat uses the specified reader for input.- Parameters:
in- the reader to use for input
-
DefaultSvetovidReader
Creates a newSvetovidReaderthat uses the specified reader for input.- Parameters:
in- the reader to use for input
-
DefaultSvetovidReader
Creates a newSvetovidReaderthat uses the specified input stream for input.- Parameters:
in- the input stream to use for input
-
DefaultSvetovidReader
Creates a newSvetovidReaderthat uses the specified string for input.- Parameters:
in- the string to use for input
-
-
Method Details
-
close
Description copied from interface:SvetovidReaderCloses this reader and releases any resources associated with the underlying source. The general contract ofcloseis that it closes the input source. A closed source cannot perform input operations and cannot be reopened.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceSvetovidReader- Overrides:
closein classAbstractSvetovidReader- Throws:
SvetovidIOException- if an error occurred during the operation.
-
doReadLine
- Specified by:
doReadLinein classAbstractSvetovidReader- Throws:
IOException
-