org.apache.axiom.om.ds.custombuilder
Class ByteArrayCustomBuilder

java.lang.Object
  extended by org.apache.axiom.om.ds.custombuilder.ByteArrayCustomBuilder
All Implemented Interfaces:
CustomBuilder

public class ByteArrayCustomBuilder
extends java.lang.Object
implements CustomBuilder

CustomBuilder that creates an OMSourcedElement backed by a ByteArrayDataSource. If you have a payload or header that will consume a lot of space, it may be beneficial to plug in this CustomBuilder. Use this CustomBuilder as a pattern for other CustomBuilders.


Field Summary
private  java.lang.String encoding
           
 
Constructor Summary
ByteArrayCustomBuilder(java.lang.String encoding)
          Constructor
 
Method Summary
 OMElement create(java.lang.String namespace, java.lang.String localPart, OMContainer parent, javax.xml.stream.XMLStreamReader reader, OMFactory factory)
          Create an OMElement for this whole subtree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

encoding

private java.lang.String encoding
Constructor Detail

ByteArrayCustomBuilder

public ByteArrayCustomBuilder(java.lang.String encoding)
Constructor

Parameters:
encoding -
Method Detail

create

public OMElement create(java.lang.String namespace,
                        java.lang.String localPart,
                        OMContainer parent,
                        javax.xml.stream.XMLStreamReader reader,
                        OMFactory factory)
                 throws OMException
Description copied from interface: CustomBuilder
Create an OMElement for this whole subtree. A null is returned if the default StAXBuilder behavior should be used.

Specified by:
create in interface CustomBuilder
Returns:
null or OMElement
Throws:
OMException