public class DefaultNetStreamDecoder extends Object implements NetStreamDecoder
| Constructor and Description |
|---|
DefaultNetStreamDecoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
decodeMessage(InputStream in)
Decode one message.
|
ThreadProxyPipe |
getDefaultStream()
Gives the default stream (a ThreadProxyPipe) identified with the name
"default".
|
ThreadProxyPipe |
getStream(String name)
Gives the stream (a ThreadProxyPipe) identified with this name.
|
void |
register(String name,
ThreadProxyPipe stream)
Register a stream.
|
void |
setDebugOn(boolean on)
Enable or disable debugging.
|
public ThreadProxyPipe getStream(String name)
NetStreamDecodergetStream in interface NetStreamDecodername - Identifier of the stream.public ThreadProxyPipe getDefaultStream()
NetStreamDecodergetDefaultStream in interface NetStreamDecoderpublic void register(String name, ThreadProxyPipe stream) throws Exception
NetStreamDecoderregister in interface NetStreamDecodername - Filter only message with this name to the given message box.stream - The ThreadProxyPipe to push the events to.Exception - If another Pipe is already registered at the given name.public void decodeMessage(InputStream in) throws IOException
NetStreamDecoderdecodeMessage in interface NetStreamDecoderIOExceptionpublic void setDebugOn(boolean on)
NetStreamDecodersetDebugOn in interface NetStreamDecoderCopyright © 2015. All rights reserved.