com.transjam.util
Class ProtocolReader
java.lang.Object
|
+--com.transjam.util.ProtocolReader
- All Implemented Interfaces:
- XMLListener
- Direct Known Subclasses:
- ClientMonitor
- public abstract class ProtocolReader
- extends java.lang.Object
- implements XMLListener
Title: Use XML style protocol for ClientServer communication.
Description: Multi-Player collaboration server.
Copyright: Copyright (c) 2001
Company: SoftSynth.com
- Version:
- 1.0
- Author:
- Phil Burk
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
public XMLReader reader
ProtocolReader
public ProtocolReader()
setStream
public void setStream(java.io.InputStream stream)
parse
public void parse()
throws java.io.IOException
gotMessage
public abstract void gotMessage(TransjamMessage msg)
throws java.io.IOException
beginElement
public void beginElement(java.lang.String tag,
java.util.Hashtable attributes,
boolean ifEmpty)
- Called by XML parser.
- Specified by:
beginElement
in interface XMLListener
foundContent
public void foundContent(java.lang.String content)
- Called by XML parser. Assume only one content section.
- Specified by:
foundContent
in interface XMLListener
endElement
public void endElement(java.lang.String tag)
- Called by XML parser.
- Specified by:
endElement
in interface XMLListener