org.apache.axis2.jaxws.context.listener
Class ParserInputStreamCustomBuilder

java.lang.Object
  extended by org.apache.axis2.jaxws.context.listener.ParserInputStreamCustomBuilder
All Implemented Interfaces:
org.apache.axiom.om.impl.builder.CustomBuilder

public class ParserInputStreamCustomBuilder
extends Object
implements org.apache.axiom.om.impl.builder.CustomBuilder

A custom builder to that does the following: 1) Uses the parser to fetch the inputStream if parser supports reading of element contents 2) Use the inputStream to create a DataSource backed by the InputStream read from Parser. 3) Use the OMFactory to create OMSourcedElement, OMSourcedElement is backed by ParsedEntityDataSource.


Constructor Summary
ParserInputStreamCustomBuilder(String encoding)
          Constructor
 
Method Summary
protected  String convertEntityReferences(String value)
           
 org.apache.axiom.om.OMElement create(String namespace, String localPart, org.apache.axiom.om.OMContainer parent, XMLStreamReader reader, org.apache.axiom.om.OMFactory factory)
           
 org.apache.axiom.om.OMElement create(String namespace, String localPart, org.apache.axiom.om.OMContainer parent, XMLStreamReader reader, org.apache.axiom.om.OMFactory factory, InputStream payload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserInputStreamCustomBuilder

public ParserInputStreamCustomBuilder(String encoding)
Constructor

Parameters:
encoding -
Method Detail

create

public org.apache.axiom.om.OMElement create(String namespace,
                                            String localPart,
                                            org.apache.axiom.om.OMContainer parent,
                                            XMLStreamReader reader,
                                            org.apache.axiom.om.OMFactory factory)
                                     throws org.apache.axiom.om.OMException
Specified by:
create in interface org.apache.axiom.om.impl.builder.CustomBuilder
Throws:
org.apache.axiom.om.OMException

create

public org.apache.axiom.om.OMElement create(String namespace,
                                            String localPart,
                                            org.apache.axiom.om.OMContainer parent,
                                            XMLStreamReader reader,
                                            org.apache.axiom.om.OMFactory factory,
                                            InputStream payload)
                                     throws org.apache.axiom.om.OMException
Throws:
org.apache.axiom.om.OMException

convertEntityReferences

protected String convertEntityReferences(String value)


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.