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
Fields inherited from class org.svetovid.io.AbstractSvetovidReader
lastException, line, throwingExceptions, tokenContent, tokenType, whitespace
-
Constructor Summary
ConstructorDescriptionCreates a newSvetovidReader
that uses the specified reader for input.Creates a newSvetovidReader
that uses the specified input stream for input.Creates a newSvetovidReader
that uses the specified reader for input.Creates a newSvetovidReader
that 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 newSvetovidReader
that uses the specified reader for input.- Parameters:
in
- the reader to use for input
-
DefaultSvetovidReader
Creates a newSvetovidReader
that uses the specified reader for input.- Parameters:
in
- the reader to use for input
-
DefaultSvetovidReader
Creates a newSvetovidReader
that uses the specified input stream for input.- Parameters:
in
- the input stream to use for input
-
DefaultSvetovidReader
Creates a newSvetovidReader
that uses the specified string for input.- Parameters:
in
- the string to use for input
-
-
Method Details
-
close
Description copied from interface:SvetovidReader
Closes this reader and releases any resources associated with the underlying source. The general contract ofclose
is that it closes the input source. A closed source cannot perform input operations and cannot be reopened.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceSvetovidReader
- Overrides:
close
in classAbstractSvetovidReader
- Throws:
SvetovidIOException
- if an error occurred during the operation.
-
doReadLine
- Specified by:
doReadLine
in classAbstractSvetovidReader
- Throws:
IOException
-