|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.stream.netstream.DefaultNetStreamDecoder
public class DefaultNetStreamDecoder
Constructor Summary | |
---|---|
DefaultNetStreamDecoder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultNetStreamDecoder()
Method Detail |
---|
public ThreadProxyPipe getStream(String name)
NetStreamDecoder
getStream
in interface NetStreamDecoder
name
- Identifier of the stream.
public ThreadProxyPipe getDefaultStream()
NetStreamDecoder
getDefaultStream
in interface NetStreamDecoder
public void register(String name, ThreadProxyPipe stream) throws Exception
NetStreamDecoder
register
in interface NetStreamDecoder
name
- 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
NetStreamDecoder
decodeMessage
in interface NetStreamDecoder
IOException
public void setDebugOn(boolean on)
NetStreamDecoder
setDebugOn
in interface NetStreamDecoder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |