public static interface ICharacterStream.Readable.Buffered extends ICharacterStream.Readable
ICharacterStream.Readable.Buffered, ICharacterStream.Readable.PositionInTextICharacterStream.Readable, ICharacterStream.Writable, ICharacterStream.WriterAsyncCloseableListenable.Impl| Modifier and Type | Method and Description |
|---|---|
void |
back(char c)
Put back one character.
|
IAsync<IOException> |
canStartReading()
Return a synchronization point which is unblocked once some characters have been buffered.
|
char |
read()
Read one character.
|
int |
readAsync()
Read one character if possible.
|
UnprotectedString |
readNextBuffer()
Return the next buffer, or null if the end of stream has been reached.
|
AsyncSupplier<UnprotectedString,IOException> |
readNextBufferAsync()
Return the next buffer as soon as available, or null if then end of stream has been reached.
|
boolean |
readUntil(char endChar,
UnprotectedStringBuffer string)
Read characters until the given end, and put them in the given string.
|
AsyncSupplier<Boolean,IOException> |
readUntilAsync(char endChar,
UnprotectedStringBuffer string)
Read characters until the given end, and put them in the given string.
|
endReached, readAsync, readFullyAsync, readFullySync, readSyncgetDescription, getEncoding, getPriority, setPrioritylockClose, unlockCloseclosecloseAfter, closeAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerIAsync<IOException> canStartReading()
void back(char c)
char read() throws IOException
IOExceptionint readAsync()
throws IOException
IOExceptionUnprotectedString readNextBuffer() throws IOException
IOExceptionAsyncSupplier<UnprotectedString,IOException> readNextBufferAsync()
boolean readUntil(char endChar,
UnprotectedStringBuffer string)
throws IOException
IOExceptionAsyncSupplier<Boolean,IOException> readUntilAsync(char endChar, UnprotectedStringBuffer string)
Copyright © 2019. All rights reserved.