EXIficient

com.siemens.ct.exi.core
Class EXIEncoderPrefixLess

java.lang.Object
  extended by com.siemens.ct.exi.core.AbstractEXICoder
      extended by com.siemens.ct.exi.core.EXIEncoderPrefixLess
All Implemented Interfaces:
EXIEncoder
Direct Known Subclasses:
EXIEncoderPrefixAware

public class EXIEncoderPrefixLess
extends AbstractEXICoder
implements EXIEncoder

TODO Description

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

Constructor Summary
EXIEncoderPrefixLess(EXIFactory exiFactory)
           
 
Method Summary
 void encodeAttribute(java.lang.String uri, java.lang.String localName, java.lang.String prefix, java.lang.String value)
          Supplies an attribute.
 void encodeCharacters(java.lang.String chars)
          Supplies a comment as corresponding characters.
 void encodeComment(char[] ch, int start, int length)
          Supplies the text of a comment.
 void encodeDocType(java.lang.String name, java.lang.String publicID, java.lang.String systemID, java.lang.String text)
          Supplies content items to represent a DOCTYPE definition
 void encodeEndDocument()
          Reports the end of a set of XML events.
 void encodeEndElement()
          Supplies the end tag of an element.
 void encodeEndFragmentSelfContained()
          Supplies the end tag of an SC fragment.
 void encodeEntityReference(java.lang.String name)
          Supplies the name of an entity reference
 void encodeNamespaceDeclaration(java.lang.String uri, java.lang.String prefix)
          Namespaces are reported as a discrete Namespace event.
 void encodeProcessingInstruction(java.lang.String target, java.lang.String data)
          Supplies the target and data for an underlying processing instruction.
 void encodeStartDocument()
          Reports the beginning of a set of XML events
 void encodeStartElement(java.lang.String uri, java.lang.String localName, java.lang.String prefix)
          Supplies the start of an element.
 int encodeStartFragmentSelfContained(java.lang.String uri, java.lang.String localName, java.lang.String prefix)
          Supplies the start of a self-contained element.
 void encodeXsiNil(java.lang.String rawNil)
          Supplies an xsi:nil attribute.
 void encodeXsiType(java.lang.String raw)
          Supplies an xsi:type case.
 void setOutput(java.io.OutputStream os, boolean exiBodyOnly)
           
 
Methods inherited from class com.siemens.ct.exi.core.AbstractEXICoder
getNamespaces, getScopeLocalName, getScopeURI, 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.EXIEncoder
getNamespaces, setErrorHandler
 

Constructor Detail

EXIEncoderPrefixLess

public EXIEncoderPrefixLess(EXIFactory exiFactory)
Method Detail

setOutput

public void setOutput(java.io.OutputStream os,
                      boolean exiBodyOnly)
               throws EXIException
Specified by:
setOutput in interface EXIEncoder
Throws:
EXIException

encodeStartDocument

public void encodeStartDocument()
                         throws EXIException
Description copied from interface: EXIEncoder
Reports the beginning of a set of XML events

Specified by:
encodeStartDocument in interface EXIEncoder
Throws:
EXIException

encodeEndDocument

public void encodeEndDocument()
                       throws EXIException
Description copied from interface: EXIEncoder
Reports the end of a set of XML events.

Specified by:
encodeEndDocument in interface EXIEncoder
Throws:
EXIException

encodeStartElement

public void encodeStartElement(java.lang.String uri,
                               java.lang.String localName,
                               java.lang.String prefix)
                        throws EXIException
Description copied from interface: EXIEncoder
Supplies the start of an element.

Provides access to the namespace URI, local name , and prefix representation of the start tag.

Specified by:
encodeStartElement in interface EXIEncoder
prefix - (can be null according to fidelity options)
Throws:
EXIException

encodeNamespaceDeclaration

public void encodeNamespaceDeclaration(java.lang.String uri,
                                       java.lang.String prefix)
                                throws EXIException
Description copied from interface: EXIEncoder
Namespaces are reported as a discrete Namespace event.

Specified by:
encodeNamespaceDeclaration in interface EXIEncoder
Throws:
EXIException

encodeEndElement

public void encodeEndElement()
                      throws EXIException
Description copied from interface: EXIEncoder
Supplies the end tag of an element.

Specified by:
encodeEndElement in interface EXIEncoder
Throws:
EXIException

encodeXsiType

public void encodeXsiType(java.lang.String raw)
                   throws EXIException
Description copied from interface: EXIEncoder
Supplies an xsi:type case.

Specified by:
encodeXsiType in interface EXIEncoder
Parameters:
raw - xsi:type value
Throws:
EXIException

encodeXsiNil

public void encodeXsiNil(java.lang.String rawNil)
                  throws EXIException
Description copied from interface: EXIEncoder
Supplies an xsi:nil attribute.

Specified by:
encodeXsiNil in interface EXIEncoder
Throws:
EXIException

encodeAttribute

public void encodeAttribute(java.lang.String uri,
                            java.lang.String localName,
                            java.lang.String prefix,
                            java.lang.String value)
                     throws EXIException
Description copied from interface: EXIEncoder
Supplies an attribute.

Provides access to the namespace URI, local name, prefix, and value of the attribute.

Specified by:
encodeAttribute in interface EXIEncoder
prefix - (can be null according to fidelity options)
Throws:
EXIException

encodeCharacters

public void encodeCharacters(java.lang.String chars)
                      throws EXIException
Description copied from interface: EXIEncoder
Supplies a comment as corresponding characters.

Note that ignorable whitespace and significant whitespace are also reported as Character events.

Specified by:
encodeCharacters in interface EXIEncoder
Throws:
EXIException

encodeDocType

public void encodeDocType(java.lang.String name,
                          java.lang.String publicID,
                          java.lang.String systemID,
                          java.lang.String text)
                   throws EXIException
Description copied from interface: EXIEncoder
Supplies content items to represent a DOCTYPE definition

Specified by:
encodeDocType in interface EXIEncoder
Throws:
EXIException

encodeEntityReference

public void encodeEntityReference(java.lang.String name)
                           throws EXIException
Description copied from interface: EXIEncoder
Supplies the name of an entity reference

Specified by:
encodeEntityReference in interface EXIEncoder
Throws:
EXIException

encodeComment

public void encodeComment(char[] ch,
                          int start,
                          int length)
                   throws EXIException
Description copied from interface: EXIEncoder
Supplies the text of a comment.

Specified by:
encodeComment in interface EXIEncoder
Throws:
EXIException

encodeProcessingInstruction

public void encodeProcessingInstruction(java.lang.String target,
                                        java.lang.String data)
                                 throws EXIException
Description copied from interface: EXIEncoder
Supplies the target and data for an underlying processing instruction.

Specified by:
encodeProcessingInstruction in interface EXIEncoder
Throws:
EXIException

encodeStartFragmentSelfContained

public int encodeStartFragmentSelfContained(java.lang.String uri,
                                            java.lang.String localName,
                                            java.lang.String prefix)
                                     throws EXIException
Description copied from interface: EXIEncoder
Supplies the start of a self-contained element. Self contained elements may be read independently from the rest of the EXI body, allowing them to be indexed for random access.

Provides access to the namespace URI, and local name of the start tag.

Specified by:
encodeStartFragmentSelfContained in interface EXIEncoder
Returns:
byte where the selfContained fragments starts or -1 if not retrievable
Throws:
EXIException

encodeEndFragmentSelfContained

public void encodeEndFragmentSelfContained()
                                    throws EXIException
Description copied from interface: EXIEncoder
Supplies the end tag of an SC fragment.

Specified by:
encodeEndFragmentSelfContained in interface EXIEncoder
Throws:
EXIException

EXIficient