protected class UnprotectedStringBuffer.CS extends UnprotectedStringBuffer.AbstractCS implements ICharacterStream.Readable.Buffered
ICharacterStream.Readable.Buffered, ICharacterStream.Readable.PositionInTextICharacterStream.Readable, ICharacterStream.Writable, ICharacterStream.WriterAsyncCloseableListenable.Implpriority| Modifier | Constructor and Description |
|---|---|
protected |
CS() |
| 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.
|
boolean |
endReached()
Return true if the end of the stream has been reached, and no more character can be read.
|
char |
read()
Read one character.
|
int |
readAsync()
Read one character if possible.
|
AsyncSupplier<Integer,IOException> |
readAsync(char[] buf,
int offset,
int length)
Read characters.
|
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.
|
int |
readSync(char[] buf,
int offset,
int length)
Read characters.
|
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.
|
closeResources, closeUnderlyingResources, getDescription, getEncoding, getPriority, setPriorityaddCloseListener, addCloseListener, close, closeAsync, isClosed, isClosing, lockClose, operation, operation, removeCloseListener, removeCloseListener, unlockCloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadFullyAsync, readFullySyncgetDescription, getEncoding, getPriority, setPrioritylockClose, unlockCloseclosecloseAfter, closeAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerpublic char read()
throws EOFException
ICharacterStream.Readable.Bufferedread in interface ICharacterStream.Readable.BufferedEOFExceptionpublic int readSync(char[] buf,
int offset,
int length)
ICharacterStream.ReadablereadSync in interface ICharacterStream.Readablepublic int readAsync()
ICharacterStream.Readable.BufferedreadAsync in interface ICharacterStream.Readable.Bufferedpublic AsyncSupplier<Integer,IOException> readAsync(char[] buf, int offset, int length)
ICharacterStream.ReadablereadAsync in interface ICharacterStream.Readablepublic AsyncSupplier<UnprotectedString,IOException> readNextBufferAsync()
ICharacterStream.Readable.BufferedreadNextBufferAsync in interface ICharacterStream.Readable.Bufferedpublic UnprotectedString readNextBuffer()
ICharacterStream.Readable.BufferedreadNextBuffer in interface ICharacterStream.Readable.Bufferedpublic boolean readUntil(char endChar,
UnprotectedStringBuffer string)
throws IOException
ICharacterStream.Readable.BufferedreadUntil in interface ICharacterStream.Readable.BufferedIOExceptionpublic AsyncSupplier<Boolean,IOException> readUntilAsync(char endChar, UnprotectedStringBuffer string)
ICharacterStream.Readable.BufferedreadUntilAsync in interface ICharacterStream.Readable.Bufferedpublic void back(char c)
ICharacterStream.Readable.Bufferedback in interface ICharacterStream.Readable.Bufferedpublic boolean endReached()
ICharacterStream.ReadableendReached in interface ICharacterStream.Readablepublic IAsync<IOException> canStartReading()
ICharacterStream.Readable.BufferedcanStartReading in interface ICharacterStream.Readable.BufferedCopyright © 2019. All rights reserved.