public class WritableCharacterStream extends ConcurrentCloseable implements ICharacterStream.Writable
ICharacterStream.Writable.BufferedICharacterStream.Readable, ICharacterStream.Writable, ICharacterStream.WriterAsyncCloseableListenable.Impl| Constructor and Description |
|---|
WritableCharacterStream(IO.Writable output,
Charset charset)
Constructor.
|
WritableCharacterStream(IO.Writable output,
CharsetEncoder encoder)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeResources(SynchronizationPoint<Exception> ondone) |
protected ISynchronizationPoint<?> |
closeUnderlyingResources() |
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,
int offset,
int length)
Write characters.
|
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 WritableCharacterStream(IO.Writable output, Charset charset)
public WritableCharacterStream(IO.Writable output, CharsetEncoder encoder)
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 void writeSync(char[] c,
int off,
int len)
throws IOException
ICharacterStream.WritablewriteSync in interface ICharacterStream.WritableIOExceptionpublic ISynchronizationPoint<IOException> writeAsync(char[] c, int offset, int length)
ICharacterStream.WriterAsyncwriteAsync in interface ICharacterStream.WriterAsyncCopyright © 2018. All rights reserved.