public class BufferedReadableCharacterStreamLocation extends ConcurrentCloseable implements ICharacterStream.Readable.Buffered
ICharacterStream.Readable.BufferedICharacterStream.Readable, ICharacterStream.Writable, ICharacterStream.WriterAsyncCloseableListenable.Impl| Constructor and Description |
|---|
BufferedReadableCharacterStreamLocation(ICharacterStream.Readable.Buffered stream)
Constructor.
|
BufferedReadableCharacterStreamLocation(ICharacterStream.Readable.Buffered stream,
int line,
int posInLine)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
back(char c)
Put back one character.
|
ISynchronizationPoint<IOException> |
canStartReading()
Return a synchronization point which is unblocked once some characters have been buffered.
|
protected void |
closeResources(SynchronizationPoint<Exception> ondone) |
protected ISynchronizationPoint<?> |
closeUnderlyingResources() |
boolean |
endReached()
Return true if the end of the stream has been reached, and no more character can be read.
|
String |
getDescription()
Description.
|
Charset |
getEncoding()
Return the encoding of the stream.
|
int |
getLine() |
int |
getPositionInLine() |
byte |
getPriority()
Return the priority.
|
char |
read()
Read one character.
|
int |
readAsync()
Read one character if possible.
|
AsyncWork<Integer,IOException> |
readAsync(char[] buf,
int offset,
int length)
Read characters.
|
int |
readSync(char[] buf,
int offset,
int length)
Read characters.
|
void |
setPriority(byte priority)
Change the priority (see Task priorities).
|
addCloseListener, addCloseListener, close, closeAsync, isClosed, isClosing, lockClose, operation, operation, removeCloseListener, removeCloseListener, unlockCloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadFullyAsync, readFullySynclockClose, unlockCloseclosecloseAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerpublic BufferedReadableCharacterStreamLocation(ICharacterStream.Readable.Buffered stream)
public BufferedReadableCharacterStreamLocation(ICharacterStream.Readable.Buffered stream, int line, int posInLine)
public int getLine()
public int getPositionInLine()
protected ISynchronizationPoint<?> closeUnderlyingResources()
closeUnderlyingResources in class ConcurrentCloseableprotected void closeResources(SynchronizationPoint<Exception> ondone)
closeResources in class ConcurrentCloseablepublic String getDescription()
ICharacterStreamgetDescription in interface ICharacterStreampublic Charset getEncoding()
ICharacterStreamgetEncoding in interface ICharacterStreampublic byte getPriority()
ConcurrentCloseablegetPriority in interface ICharacterStreamgetPriority in class ConcurrentCloseablepublic void setPriority(byte priority)
ICharacterStreamsetPriority in interface ICharacterStreampublic char read()
throws EOFException,
IOException
ICharacterStream.Readable.Bufferedread in interface ICharacterStream.Readable.BufferedEOFExceptionIOExceptionpublic int readSync(char[] buf,
int offset,
int length)
throws IOException
ICharacterStream.ReadablereadSync in interface ICharacterStream.ReadableIOExceptionpublic void back(char c)
ICharacterStream.Readable.Bufferedback in interface ICharacterStream.Readable.Bufferedpublic int readAsync()
throws IOException
ICharacterStream.Readable.BufferedreadAsync in interface ICharacterStream.Readable.BufferedIOExceptionpublic AsyncWork<Integer,IOException> readAsync(char[] buf, int offset, int length)
ICharacterStream.ReadablereadAsync in interface ICharacterStream.Readablepublic boolean endReached()
ICharacterStream.ReadableendReached in interface ICharacterStream.Readablepublic ISynchronizationPoint<IOException> canStartReading()
ICharacterStream.Readable.BufferedcanStartReading in interface ICharacterStream.Readable.BufferedCopyright © 2017. All rights reserved.