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 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.


Constructor Summary
ByteArrayCustomBuilder(String encoding)
          Constructor
 
Method Summary
 OMElement create(String namespace, 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
 

Constructor Detail

ByteArrayCustomBuilder

public ByteArrayCustomBuilder(String encoding)
Constructor

Parameters:
encoding -
Method Detail

create

public OMElement create(String namespace,
                        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


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