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

Field Summary
 XMLReader reader
           
 
Constructor Summary
ProtocolReader()
           
 
Method Summary
 void beginElement(java.lang.String tag, java.util.Hashtable attributes, boolean ifEmpty)
          Called by XML parser.
 void endElement(java.lang.String tag)
          Called by XML parser.
 void foundContent(java.lang.String content)
          Called by XML parser.
abstract  void gotMessage(TransjamMessage msg)
           
 void parse()
           
 void setStream(java.io.InputStream stream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

public XMLReader reader
Constructor Detail

ProtocolReader

public ProtocolReader()
Method Detail

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