org.netbeans.lib.collab
Class ConferenceEventHelper

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.netbeans.lib.collab.ConferenceEventHelper
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class ConferenceEventHelper
extends org.xml.sax.helpers.DefaultHandler

Helper class for recipients of a poll message. This class can be used to parse the xml from the poll message and generate a poll response based on user input.

Since:
version 0.1

Constructor Summary
ConferenceEventHelper()
          Constructor used to generate conference event
ConferenceEventHelper(java.io.InputStream in)
          Constructor used to parse a conference event
ConferenceEventHelper(java.lang.String str)
          Constructor used to parse a conference event
 
Method Summary
 void addTuple(ConferenceEventTuple tuple)
           
 void characters(char[] ch, int start, int length)
           
 void endElement(java.lang.String nsuri, java.lang.String localName, java.lang.String fqName)
           
 java.io.InputStream getInputStream()
           
 java.util.Collection getTuples()
           
 void startDocument()
           
 void startElement(java.lang.String nsuri, java.lang.String localName, java.lang.String fqName, org.xml.sax.Attributes attributes)
           
 java.lang.String toString()
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConferenceEventHelper

public ConferenceEventHelper(java.io.InputStream in)
                      throws java.lang.Exception
Constructor used to parse a conference event

Parameters:
in - UTF-8 encoded input stream to the conference event message content (XML document)

ConferenceEventHelper

public ConferenceEventHelper(java.lang.String str)
                      throws java.lang.Exception
Constructor used to parse a conference event

Parameters:
str - conference event message content (XML document)

ConferenceEventHelper

public ConferenceEventHelper()
Constructor used to generate conference event

Method Detail

addTuple

public void addTuple(ConferenceEventTuple tuple)

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String nsuri,
                       java.lang.String localName,
                       java.lang.String fqName)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String nsuri,
                         java.lang.String localName,
                         java.lang.String fqName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getTuples

public java.util.Collection getTuples()

toString

public java.lang.String toString()

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.lang.Exception
Throws:
java.lang.Exception