|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asyncobjects.AsyncUnicastServer<FacetType>
net.sf.asyncobjects.util.CloseableWrapper<ATextInput,AByteInput>
net.sf.asyncobjects.io.DecoderTextInput
public class DecoderTextInput
A text input that uses CharsetDecoder to convert byte input to
character input.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.asyncobjects.util.CloseableWrapper |
|---|
CloseableWrapper.InvalidatingWhen<I,R> |
| Field Summary |
|---|
| Fields inherited from class net.sf.asyncobjects.util.CloseableWrapper |
|---|
closeWrapper, requests, wrapped |
| Constructor Summary | |
|---|---|
DecoderTextInput(BufferProvider buffers,
AByteInput stream,
boolean closeStream,
CharsetDecoder decoder,
int replenishLimit)
A constructor |
|
DecoderTextInput(String encoding,
AByteInput in)
A constructor |
|
| Method Summary | |
|---|---|
Promise<Boolean> |
isPushbackSupported()
|
void |
onMalformedInput(CodingErrorAction newAction)
Configure decoder to execute specifed action on malformed input |
void |
onUnmappableCharacter(CodingErrorAction newAction)
Configure decoder to execute specifed action on unmappable character |
Promise<Void> |
pushback(TextData data)
Push back the data |
Promise<TextData> |
read(int limit)
Read some data. |
void |
replaceWith(String newReplacement)
Configure reprelacement string for decoder |
| Methods inherited from class net.sf.asyncobjects.util.CloseableWrapper |
|---|
afterInvalidate, beforeClose, close, closed, ensureOpen, ensureValid, invalidate, isValid |
| Methods inherited from class net.sf.asyncobjects.AsyncUnicastServer |
|---|
dereference, export, isImmediate, myVat, promise |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.asyncobjects.ACloseable |
|---|
close |
| Methods inherited from interface net.sf.asyncobjects.AsyncObject |
|---|
dereference, isImmediate |
| Constructor Detail |
|---|
public DecoderTextInput(BufferProvider buffers,
AByteInput stream,
boolean closeStream,
CharsetDecoder decoder,
int replenishLimit)
buffers - a buffer providerstream - a stream to decodecloseStream - if true, underlying stream is closed if this stream is closeddecoder - a decoder to usereplenishLimit - a limit for reading data from the underlying stream
public DecoderTextInput(String encoding,
AByteInput in)
encoding - an encodingin - an input stream| Method Detail |
|---|
public Promise<Boolean> isPushbackSupported()
isPushbackSupported in interface AInput<TextData>AInput.isPushbackSupported()public void replaceWith(String newReplacement)
newReplacement - a new replacement string.public void onMalformedInput(CodingErrorAction newAction)
newAction - a new actionpublic void onUnmappableCharacter(CodingErrorAction newAction)
newAction - a new actionpublic Promise<Void> pushback(TextData data)
pushback in interface AInput<TextData>data - a data to push back
AInput.pushback(net.sf.asyncobjects.io.BatchedData)public Promise<TextData> read(int limit)
AInput
read in interface AInput<TextData>limit - a maximum amount of data elements to read.
AInput.read(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||