public class BufferedWritableCharacterStream extends ConcurrentCloseable<IOException> 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(Async<IOException> ondone) |
protected IAsync<IOException> |
closeUnderlyingResources() |
IAsync<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).
|
IAsync<IOException> |
writeAsync(char c)
Write one character.
|
IAsync<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, unlockCloseclosecloseAfter, closeAsyncaddCloseListener, addCloseListener, close, isClosed, removeCloseListener, removeCloseListenerwriteAsync, writeAsyncpublic BufferedWritableCharacterStream(IO.Writable output, Charset charset, int bufferSize)
public BufferedWritableCharacterStream(IO.Writable output, CharsetEncoder encoder, int bufferSize)
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 IAsync<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 IAsync<IOException> writeAsync(char c)
ICharacterStream.Writable.BufferedwriteAsync in interface ICharacterStream.Writable.Bufferedpublic IAsync<IOException> writeAsync(char[] c, int off, int len)
ICharacterStream.WriterAsyncwriteAsync in interface ICharacterStream.WriterAsyncCopyright © 2019. All rights reserved.