EXIficient

com.siemens.ct.exi.core
Class EXIDecoderInOrder

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
All Implemented Interfaces:
EXIDecoder
Direct Known Subclasses:
EXIDecoderInOrderSC, EXIDecoderReordered

public class EXIDecoderInOrder
extends AbstractEXIDecoder

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
EXIDecoderInOrder(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.
 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.AbstractEXIDecoder
decodeStartFragmentSelfContained, getAttributeLocalName, getAttributeQName, getAttributeURI, getAttributeValue, getCharacters, getComment, getDocTypeName, getDocTypePublicID, getDocTypeSystemID, getDocTypeText, getElementLocalName, getElementQName, getElementURI, getEntityReferenceName, getPIData, getPITarget
 
Methods inherited from class com.siemens.ct.exi.core.AbstractEXICoder
getNamespaces, setErrorHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.siemens.ct.exi.EXIDecoder
getNamespaces
 

Constructor Detail

EXIDecoderInOrder

public EXIDecoderInOrder(EXIFactory exiFactory)
Method Detail

setInputStream

public void setInputStream(java.io.InputStream is,
                           boolean exiBodyOnly)
                    throws EXIException,
                           java.io.IOException
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.

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

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

Throws:
EXIException

decodeStartElement

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

Start element appearing as expected event.

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

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

Throws:
EXIException
java.io.IOException

decodeStartElementGenericUndeclared

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

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.

Throws:
EXIException
java.io.IOException

decodeAttributeXsiNil

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

Throws:
EXIException
java.io.IOException

decodeAttributeXsiType

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

Throws:
EXIException
java.io.IOException

decodeAttribute

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

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

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)

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)

Throws:
EXIException
java.io.IOException

decodeAttributeGeneric

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

Throws:
EXIException
java.io.IOException

decodeAttributeGenericUndeclared

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

Throws:
EXIException
java.io.IOException

decodeCharacters

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

Throws:
EXIException
java.io.IOException

decodeCharactersGeneric

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

Throws:
EXIException
java.io.IOException

decodeCharactersGenericUndeclared

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

Throws:
EXIException
java.io.IOException

decodeEndElement

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

Throws:
EXIException
java.io.IOException

decodeEndElementUndeclared

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

Throws:
EXIException
java.io.IOException

decodeEndDocument

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

Throws:
EXIException
java.io.IOException

decodeDocType

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

Throws:
EXIException
java.io.IOException

decodeEntityReference

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

Throws:
EXIException
java.io.IOException

decodeComment

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

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.

Throws:
EXIException
java.io.IOException

EXIficient