us.bpsm.edn.parser
Interface Parseable
-
- All Superinterfaces:
- java.lang.AutoCloseable, java.io.Closeable
public interface Parseable extends java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field and Description static intEND_OF_INPUTThe value returned byread()to indicate the end of input available through this Parseable.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intread()Read and return the next character from this Parseable as a non-negative integer, orEND_OF_INPUT.voidunread(int ch)Unreadch, such that the next call toread()will returnch.
-
-
-
Field Detail
-
END_OF_INPUT
static final int END_OF_INPUT
The value returned byread()to indicate the end of input available through this Parseable.- See Also:
- Constant Field Values
-
-
Method Detail
-
read
int read() throws java.io.IOException
Read and return the next character from this Parseable as a non-negative integer, orEND_OF_INPUT.- Throws:
java.io.IOException
-
unread
void unread(int ch) throws java.io.IOExceptionUnreadch, such that the next call toread()will returnch. Unread can be used to unread at most one character of input.The behavior of calling
unreadbefore the first call toread()is undefined. The behavior of callingunread(ch)with something other thanchreturned by the most recent call toread()is undefined. The behavior of callingunread(ch)more than once without an intervening call toread()is undefined.- Throws:
java.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG