EXIficient

com.siemens.ct.exi.core
Class EXIDecoderInOrderSC

java.lang.Object
  extended by com.siemens.ct.exi.core.AbstractEXICoder
      extended by com.siemens.ct.exi.core.AbstractEXIDecoder
          extended by com.siemens.ct.exi.core.EXIDecoderInOrder
              extended by com.siemens.ct.exi.core.EXIDecoderInOrderSC
All Implemented Interfaces:
EXIDecoder

public class EXIDecoderInOrderSC
extends EXIDecoderInOrder

TODO Description

Version:
0.4.20090414
Author:
Daniel.Peintner.EXT@siemens.com, Joerg.Heuer@siemens.com

Field Summary
 
Fields inherited from class com.siemens.ct.exi.core.AbstractEXICoder
INITIAL_STACK_SIZE
 
Constructor Summary
EXIDecoderInOrderSC(EXIFactory exiFactory)
           
 
Method Summary
 void decodeAttribute()
          Parses attribute
 void decodeAttributeAnyInvalidValue()
          Parses expected attribute with schema-invalid value (NO qname given)
 void decodeAttributeGeneric()
          Parses expected generic attribute.
 void decodeAttributeGenericUndeclared()
          Parses unexpected attribute.
 void decodeAttributeInvalidValue()
          Parses expected attribute with schema-invalid value (qname given)
 void decodeAttributeNS()
          Parses expected attribute with given namespaceURI
 void decodeAttributeXsiNil()
          Parses xsi:nil attribute
 void decodeAttributeXsiType()
          Parses xsi:type attribute
 void decodeCharacters()
          Decodes characters
 void decodeCharactersGeneric()
          Decodes generic characters.
 void decodeCharactersGenericUndeclared()
          Decodes unexpected (generic) characters.
 void decodeComment()
          Parses comment with associated characters.
 void decodeDocType()
          Parses DOCTYPE with information items
 void decodeEndDocument()
          Finalizes the end of a set of XML events
 void decodeEndElement()
          Reads EXI end element
 void decodeEndElementUndeclared()
          Reads unexpected EXI end element.
 void decodeEntityReference()
          Parses EntityReference
 void decodeNamespaceDeclaration()
          Parses namespace declaration retrieving associated URI and prefix.
 void decodeProcessingInstruction()
          Parses processing instruction with associated target and data.
 void decodeStartDocument()
          Initializes the beginning of a set of XML events
 void decodeStartElement()
          Reads EXI start element.
 void decodeStartElementGeneric()
          Reads generic start element.
 void decodeStartElementGenericUndeclared()
          Parses unexpected start element.
 void decodeStartElementNS()
          Reads start element where only the URI is known.
 void decodeStartFragmentSelfContained()
          Reads EXI a self-contained start element
 java.lang.String getAttributeLocalName()
          Provides (last) attribute local-name
 java.lang.String getAttributeQName()
          Returns qualified name for (last) attribute
 java.lang.String getAttributeURI()
          Provides (last) attribute namespace
 java.lang.String getAttributeValue()
          Provides attribute value
 char[] getCharacters()
          Provides characters as well as significant/insignificant whitespace characters
 char[] getComment()
          Provides comment text.
 java.lang.String getDocTypeName()
          Provides DOCTYPE name.
 java.lang.String getDocTypePublicID()
          Provides DOCTYPE public ID.
 java.lang.String getDocTypeSystemID()
          Provides DOCTYPE system ID.
 java.lang.String getDocTypeText()
          Provides DOCTYPE text.
 java.lang.String getElementLocalName()
          Provides (last) element local-name
 java.lang.String getElementQName()
          Returns qualified name for element name
 java.lang.String getElementURI()
          Provides (last) element namespace.
 java.lang.String getEntityReferenceName()
          Provides ENTITY_REFERENCE name.
 org.xml.sax.helpers.NamespaceSupport getNamespaces()
          Provides namespace support.
 java.lang.String getPIData()
          Provides processing instructions data.
 java.lang.String getPITarget()
          Provides processing instructions target.
 boolean hasNext()
          Reports whether an additional EXI event is available.
 EventType next()
          Reports the next available EXI event-type
 void setInputStream(java.io.InputStream is, boolean exiBodyOnly)
           
 
Methods inherited from class com.siemens.ct.exi.core.AbstractEXICoder
setErrorHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EXIDecoderInOrderSC

public EXIDecoderInOrderSC(EXIFactory exiFactory)
Method Detail

setInputStream

public void setInputStream(java.io.InputStream is,
                           boolean exiBodyOnly)
                    throws EXIException,
                           java.io.IOException
Specified by:
setInputStream in interface EXIDecoder
Overrides:
setInputStream in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

hasNext

public boolean hasNext()
                throws EXIException,
                       java.io.IOException
Description copied from interface: EXIDecoder
Reports whether an additional EXI event is available.

Specified by:
hasNext in interface EXIDecoder
Overrides:
hasNext in class EXIDecoderInOrder
Returns:
true if the stream has more events.
Throws:
EXIException
java.io.IOException

next

public EventType next()
               throws EXIException
Description copied from interface: EXIDecoder
Reports the next available EXI event-type

Specified by:
next in interface EXIDecoder
Overrides:
next in class EXIDecoderInOrder
Returns:
EventType for next EXI event
Throws:
EXIException

decodeStartDocument

public void decodeStartDocument()
                         throws EXIException
Description copied from interface: EXIDecoder
Initializes the beginning of a set of XML events

Specified by:
decodeStartDocument in interface EXIDecoder
Overrides:
decodeStartDocument in class EXIDecoderInOrder
Throws:
EXIException

decodeEndDocument

public void decodeEndDocument()
                       throws EXIException,
                              java.io.IOException
Description copied from interface: EXIDecoder
Finalizes the end of a set of XML events

Specified by:
decodeEndDocument in interface EXIDecoder
Overrides:
decodeEndDocument in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeStartElement

public void decodeStartElement()
                        throws EXIException,
                               java.io.IOException
Description copied from interface: EXIDecoder
Reads EXI start element.

Start element appearing as expected event.

Specified by:
decodeStartElement in interface EXIDecoder
Overrides:
decodeStartElement in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeStartElementNS

public void decodeStartElementNS()
                          throws EXIException,
                                 java.io.IOException
Description copied from interface: EXIDecoder
Reads start element where only the URI is known.

Expected start element with given namespaceURI

Specified by:
decodeStartElementNS in interface EXIDecoder
Overrides:
decodeStartElementNS in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeStartElementGeneric

public void decodeStartElementGeneric()
                               throws EXIException,
                                      java.io.IOException
Description copied from interface: EXIDecoder
Reads generic start element.

Expected generic start element

Specified by:
decodeStartElementGeneric in interface EXIDecoder
Overrides:
decodeStartElementGeneric in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeStartElementGenericUndeclared

public void decodeStartElementGenericUndeclared()
                                         throws EXIException,
                                                java.io.IOException
Description copied from interface: EXIDecoder
Parses unexpected start element.

Specified by:
decodeStartElementGenericUndeclared in interface EXIDecoder
Overrides:
decodeStartElementGenericUndeclared in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeStartFragmentSelfContained

public void decodeStartFragmentSelfContained()
                                      throws EXIException,
                                             java.io.IOException
Description copied from interface: EXIDecoder
Reads EXI a self-contained start element

Specified by:
decodeStartFragmentSelfContained in interface EXIDecoder
Overrides:
decodeStartFragmentSelfContained in class AbstractEXIDecoder
Throws:
EXIException
java.io.IOException

decodeEndElement

public void decodeEndElement()
                      throws EXIException,
                             java.io.IOException
Description copied from interface: EXIDecoder
Reads EXI end element

Specified by:
decodeEndElement in interface EXIDecoder
Overrides:
decodeEndElement in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeEndElementUndeclared

public void decodeEndElementUndeclared()
                                throws EXIException,
                                       java.io.IOException
Description copied from interface: EXIDecoder
Reads unexpected EXI end element.

Specified by:
decodeEndElementUndeclared in interface EXIDecoder
Overrides:
decodeEndElementUndeclared in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeAttributeXsiNil

public void decodeAttributeXsiNil()
                           throws EXIException,
                                  java.io.IOException
Description copied from interface: EXIDecoder
Parses xsi:nil attribute

Specified by:
decodeAttributeXsiNil in interface EXIDecoder
Overrides:
decodeAttributeXsiNil in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeAttributeXsiType

public void decodeAttributeXsiType()
                            throws EXIException,
                                   java.io.IOException
Description copied from interface: EXIDecoder
Parses xsi:type attribute

Specified by:
decodeAttributeXsiType in interface EXIDecoder
Overrides:
decodeAttributeXsiType in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeAttribute

public void decodeAttribute()
                     throws EXIException,
                            java.io.IOException
Description copied from interface: EXIDecoder
Parses attribute

Specified by:
decodeAttribute in interface EXIDecoder
Overrides:
decodeAttribute in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeAttributeNS

public void decodeAttributeNS()
                       throws EXIException,
                              java.io.IOException
Description copied from interface: EXIDecoder
Parses expected attribute with given namespaceURI

Specified by:
decodeAttributeNS in interface EXIDecoder
Overrides:
decodeAttributeNS in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeAttributeInvalidValue

public void decodeAttributeInvalidValue()
                                 throws EXIException,
                                        java.io.IOException
Description copied from interface: EXIDecoder
Parses expected attribute with schema-invalid value (qname given)

Specified by:
decodeAttributeInvalidValue in interface EXIDecoder
Overrides:
decodeAttributeInvalidValue in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeAttributeAnyInvalidValue

public void decodeAttributeAnyInvalidValue()
                                    throws EXIException,
                                           java.io.IOException
Description copied from interface: EXIDecoder
Parses expected attribute with schema-invalid value (NO qname given)

Specified by:
decodeAttributeAnyInvalidValue in interface EXIDecoder
Overrides:
decodeAttributeAnyInvalidValue in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeAttributeGeneric

public void decodeAttributeGeneric()
                            throws EXIException,
                                   java.io.IOException
Description copied from interface: EXIDecoder
Parses expected generic attribute.

Specified by:
decodeAttributeGeneric in interface EXIDecoder
Overrides:
decodeAttributeGeneric in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeAttributeGenericUndeclared

public void decodeAttributeGenericUndeclared()
                                      throws EXIException,
                                             java.io.IOException
Description copied from interface: EXIDecoder
Parses unexpected attribute.

Specified by:
decodeAttributeGenericUndeclared in interface EXIDecoder
Overrides:
decodeAttributeGenericUndeclared in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeNamespaceDeclaration

public void decodeNamespaceDeclaration()
                                throws EXIException,
                                       java.io.IOException
Description copied from interface: EXIDecoder
Parses namespace declaration retrieving associated URI and prefix.

Specified by:
decodeNamespaceDeclaration in interface EXIDecoder
Overrides:
decodeNamespaceDeclaration in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeCharacters

public void decodeCharacters()
                      throws EXIException,
                             java.io.IOException
Description copied from interface: EXIDecoder
Decodes characters

Specified by:
decodeCharacters in interface EXIDecoder
Overrides:
decodeCharacters in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeCharactersGeneric

public void decodeCharactersGeneric()
                             throws EXIException,
                                    java.io.IOException
Description copied from interface: EXIDecoder
Decodes generic characters.

Specified by:
decodeCharactersGeneric in interface EXIDecoder
Overrides:
decodeCharactersGeneric in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeCharactersGenericUndeclared

public void decodeCharactersGenericUndeclared()
                                       throws EXIException,
                                              java.io.IOException
Description copied from interface: EXIDecoder
Decodes unexpected (generic) characters.

Specified by:
decodeCharactersGenericUndeclared in interface EXIDecoder
Overrides:
decodeCharactersGenericUndeclared in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeDocType

public void decodeDocType()
                   throws EXIException,
                          java.io.IOException
Description copied from interface: EXIDecoder
Parses DOCTYPE with information items

Specified by:
decodeDocType in interface EXIDecoder
Overrides:
decodeDocType in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeEntityReference

public void decodeEntityReference()
                           throws EXIException,
                                  java.io.IOException
Description copied from interface: EXIDecoder
Parses EntityReference

Specified by:
decodeEntityReference in interface EXIDecoder
Overrides:
decodeEntityReference in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeComment

public void decodeComment()
                   throws EXIException,
                          java.io.IOException
Description copied from interface: EXIDecoder
Parses comment with associated characters.

Specified by:
decodeComment in interface EXIDecoder
Overrides:
decodeComment in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

decodeProcessingInstruction

public void decodeProcessingInstruction()
                                 throws EXIException,
                                        java.io.IOException
Description copied from interface: EXIDecoder
Parses processing instruction with associated target and data.

Specified by:
decodeProcessingInstruction in interface EXIDecoder
Overrides:
decodeProcessingInstruction in class EXIDecoderInOrder
Throws:
EXIException
java.io.IOException

getElementURI

public java.lang.String getElementURI()
Description copied from interface: EXIDecoder
Provides (last) element namespace.

Specified by:
getElementURI in interface EXIDecoder
Overrides:
getElementURI in class AbstractEXIDecoder
Returns:
String for element URI

getElementLocalName

public java.lang.String getElementLocalName()
Description copied from interface: EXIDecoder
Provides (last) element local-name

Specified by:
getElementLocalName in interface EXIDecoder
Overrides:
getElementLocalName in class AbstractEXIDecoder
Returns:
String for element name

getElementQName

public java.lang.String getElementQName()
Description copied from interface: EXIDecoder
Returns qualified name for element name

Specified by:
getElementQName in interface EXIDecoder
Overrides:
getElementQName in class AbstractEXIDecoder
Returns:
String for qname

getAttributeURI

public java.lang.String getAttributeURI()
Description copied from interface: EXIDecoder
Provides (last) attribute namespace

Specified by:
getAttributeURI in interface EXIDecoder
Overrides:
getAttributeURI in class AbstractEXIDecoder
Returns:
String for attribute URI

getAttributeLocalName

public java.lang.String getAttributeLocalName()
Description copied from interface: EXIDecoder
Provides (last) attribute local-name

Specified by:
getAttributeLocalName in interface EXIDecoder
Overrides:
getAttributeLocalName in class AbstractEXIDecoder
Returns:
String for attribute name

getAttributeQName

public java.lang.String getAttributeQName()
Description copied from interface: EXIDecoder
Returns qualified name for (last) attribute

Specified by:
getAttributeQName in interface EXIDecoder
Overrides:
getAttributeQName in class AbstractEXIDecoder
Returns:
String for qname

getAttributeValue

public java.lang.String getAttributeValue()
Description copied from interface: EXIDecoder
Provides attribute value

Specified by:
getAttributeValue in interface EXIDecoder
Overrides:
getAttributeValue in class AbstractEXIDecoder
Returns:
String for attribute value

getCharacters

public char[] getCharacters()
Description copied from interface: EXIDecoder
Provides characters as well as significant/insignificant whitespace characters

Specified by:
getCharacters in interface EXIDecoder
Overrides:
getCharacters in class AbstractEXIDecoder
Returns:
char[] for characters

getDocTypeName

public java.lang.String getDocTypeName()
Description copied from interface: EXIDecoder
Provides DOCTYPE name.

Specified by:
getDocTypeName in interface EXIDecoder
Overrides:
getDocTypeName in class AbstractEXIDecoder
Returns:
String for DOCTYPE name

getDocTypePublicID

public java.lang.String getDocTypePublicID()
Description copied from interface: EXIDecoder
Provides DOCTYPE public ID.

Specified by:
getDocTypePublicID in interface EXIDecoder
Overrides:
getDocTypePublicID in class AbstractEXIDecoder
Returns:
String for DOCTYPE public ID

getDocTypeSystemID

public java.lang.String getDocTypeSystemID()
Description copied from interface: EXIDecoder
Provides DOCTYPE system ID.

Specified by:
getDocTypeSystemID in interface EXIDecoder
Overrides:
getDocTypeSystemID in class AbstractEXIDecoder
Returns:
String for DOCTYPE system ID

getDocTypeText

public java.lang.String getDocTypeText()
Description copied from interface: EXIDecoder
Provides DOCTYPE text.

Specified by:
getDocTypeText in interface EXIDecoder
Overrides:
getDocTypeText in class AbstractEXIDecoder
Returns:
String for DOCTYPE text

getEntityReferenceName

public java.lang.String getEntityReferenceName()
Description copied from interface: EXIDecoder
Provides ENTITY_REFERENCE name.

Specified by:
getEntityReferenceName in interface EXIDecoder
Overrides:
getEntityReferenceName in class AbstractEXIDecoder
Returns:
String for DOCTYPE name

getComment

public char[] getComment()
Description copied from interface: EXIDecoder
Provides comment text.

Specified by:
getComment in interface EXIDecoder
Overrides:
getComment in class AbstractEXIDecoder
Returns:
String for comment text

getNamespaces

public org.xml.sax.helpers.NamespaceSupport getNamespaces()
Description copied from interface: EXIDecoder
Provides namespace support.

Specified by:
getNamespaces in interface EXIDecoder
Overrides:
getNamespaces in class AbstractEXICoder
Returns:
NamespaceSupport for prefix mapping

getPITarget

public java.lang.String getPITarget()
Description copied from interface: EXIDecoder
Provides processing instructions target.

Specified by:
getPITarget in interface EXIDecoder
Overrides:
getPITarget in class AbstractEXIDecoder
Returns:
String for PI target

getPIData

public java.lang.String getPIData()
Description copied from interface: EXIDecoder
Provides processing instructions data.

Specified by:
getPIData in interface EXIDecoder
Overrides:
getPIData in class AbstractEXIDecoder
Returns:
String for PI data

EXIficient