public class WritableCharacterStream extends ConcurrentCloseable<IOException> 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(Async<IOException> ondone) |
protected IAsync<IOException> |
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).
|
IAsync<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, unlockCloseclosecloseAfter, closeAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerwriteAsync, writeAsyncpublic WritableCharacterStream(IO.Writable output, Charset charset)
public WritableCharacterStream(IO.Writable output, CharsetEncoder encoder)
protected IAsync<IOException> closeUnderlyingResources()
closeUnderlyingResources in class ConcurrentCloseable<IOException>protected void closeResources(Async<IOException> ondone)
closeResources in class ConcurrentCloseable<IOException>public byte getPriority()
ConcurrentCloseablegetPriority in interface ICharacterStreamgetPriority in class ConcurrentCloseable<IOException>public 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 IAsync<IOException> writeAsync(char[] c, int offset, int length)
ICharacterStream.WriterAsyncwriteAsync in interface ICharacterStream.WriterAsyncCopyright © 2019. All rights reserved.