INRIA & FluxMedia

fr.fluxmedia.tmcontrib.serializer
Class vcsHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by fr.fluxmedia.tmcontrib.serializer.vcsHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

final class vcsHandler
extends org.xml.sax.helpers.DefaultHandler

Description of the Class

Author:
Charre Bruno

Field Summary
private  boolean composed
          True if we must
private  java.lang.String composedValue
          The value of the composed value
protected  java.util.Vector composedVector
          All the elements which require a Begin/End
private  boolean encode
          True if we must
private  java.lang.String encoding
          The value of the encoding parameter
protected  java.io.PrintStream output
          The OutputStream used by this serializer.
protected  java.util.Vector vcsVector
          All the elements which require a Begin/End
 
Constructor Summary
vcsHandler(boolean card)
          Constructor for the vcsHandler object
 
Method Summary
 void characters(char[] ch, int start, int length)
          The characters command
private  java.lang.String encoder(java.lang.String s, java.lang.String encoding)
          Description of the Method
 void endElement(java.lang.String ns, java.lang.String localName, java.lang.String name)
          The endElement command
 void setOutputStream(java.io.OutputStream out)
          Set the OutputStream where the PDI should be writted.
 void startElement(java.lang.String ns, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts)
          The startElement command
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

output

protected java.io.PrintStream output
The OutputStream used by this serializer.


vcsVector

protected java.util.Vector vcsVector
All the elements which require a Begin/End


composedVector

protected java.util.Vector composedVector
All the elements which require a Begin/End


composed

private boolean composed
True if we must


composedValue

private java.lang.String composedValue
The value of the composed value


encode

private boolean encode
True if we must


encoding

private java.lang.String encoding
The value of the encoding parameter

Constructor Detail

vcsHandler

public vcsHandler(boolean card)
Constructor for the vcsHandler object

Parameters:
card - Description of the Parameter
Method Detail

setOutputStream

public void setOutputStream(java.io.OutputStream out)
Set the OutputStream where the PDI should be writted.

Parameters:
out - The new outputStream value

startElement

public void startElement(java.lang.String ns,
                         java.lang.String localName,
                         java.lang.String name,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
The startElement command

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
ns - Description of the Parameter
localName - Description of the Parameter
name - Description of the Parameter
atts - Description of the Parameter
Throws:
org.xml.sax.SAXException - Description of the Exception

endElement

public void endElement(java.lang.String ns,
                       java.lang.String localName,
                       java.lang.String name)
                throws org.xml.sax.SAXException
The endElement command

Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
ns - Description of the Parameter
localName - Description of the Parameter
name - Description of the Parameter
Throws:
org.xml.sax.SAXException - Description of the Exception

characters

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

Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Parameters:
ch - Description of the Parameter
start - Description of the Parameter
length - Description of the Parameter
Throws:
org.xml.sax.SAXException - Description of the Exception

encoder

private java.lang.String encoder(java.lang.String s,
                                 java.lang.String encoding)
Description of the Method

Parameters:
s - Description of the Parameter
encoding - Description of the Parameter
Returns:
Description of the Return Value

INRIA & FluxMedia

..no bottom yet...