public class BufferedWritableCharacterStream extends ConcurrentCloseable implements ICharacterStream.Writable.Buffered
ICharacterStream.Writable.BufferedICharacterStream.Readable, ICharacterStream.Writable, ICharacterStream.WriterAsyncCloseableListenable.Impl| Constructor and Description |
|---|
BufferedWritableCharacterStream(IO.Writable output,
CharsetEncoder encoder,
int bufferSize)
Constructor.
|
BufferedWritableCharacterStream(IO.Writable output,
Charset charset,
int bufferSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeResources(SynchronizationPoint<Exception> ondone) |
protected ISynchronizationPoint<?> |
closeUnderlyingResources() |
ISynchronizationPoint<IOException> |
flush()
Flush any buffered character.
|
String |
getDescription()
Description.
|
Charset |
getEncoding()
Return the encoding of the stream.
|
byte |
getPriority()
Return the priority.
|
void |
setPriority(byte priority)
Change the priority (see Task priorities).
|
ISynchronizationPoint<IOException> |
writeAsync(char c)
Write one character.
|
ISynchronizationPoint<IOException> |
writeAsync(char[] c,
int off,
int len)
Write characters.
|
void |
writeSync(char c)
Write one character.
|
void |
writeSync(char[] c,
int off,
int len)
Write characters.
|
addCloseListener, addCloseListener, close, closeAsync, isClosed, isClosing, lockClose, operation, operation, removeCloseListener, removeCloseListener, unlockCloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteSync, writeSynclockClose, unlockCloseclosecloseAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerwriteAsync, writeAsyncpublic BufferedWritableCharacterStream(IO.Writable output, Charset charset, int bufferSize)
public BufferedWritableCharacterStream(IO.Writable output, CharsetEncoder encoder, int bufferSize)
protected ISynchronizationPoint<?> closeUnderlyingResources()
closeUnderlyingResources in class ConcurrentCloseableprotected void closeResources(SynchronizationPoint<Exception> ondone)
closeResources in class ConcurrentCloseablepublic byte getPriority()
ConcurrentCloseablegetPriority in interface ICharacterStreamgetPriority in class ConcurrentCloseablepublic void setPriority(byte priority)
ICharacterStreamsetPriority in interface ICharacterStreampublic String getDescription()
ICharacterStreamgetDescription in interface ICharacterStreampublic Charset getEncoding()
ICharacterStreamgetEncoding in interface ICharacterStreampublic ISynchronizationPoint<IOException> flush()
ICharacterStream.Writable.Bufferedflush in interface ICharacterStream.Writable.Bufferedpublic void writeSync(char c)
throws IOException
ICharacterStream.Writable.BufferedwriteSync in interface ICharacterStream.Writable.BufferedIOExceptionpublic void writeSync(char[] c,
int off,
int len)
throws IOException
ICharacterStream.WritablewriteSync in interface ICharacterStream.WritableIOExceptionpublic ISynchronizationPoint<IOException> writeAsync(char c)
ICharacterStream.Writable.BufferedwriteAsync in interface ICharacterStream.Writable.Bufferedpublic ISynchronizationPoint<IOException> writeAsync(char[] c, int off, int len)
ICharacterStream.WriterAsyncwriteAsync in interface ICharacterStream.WriterAsyncCopyright © 2017. All rights reserved.