org.apache.axiom.om.ds.custombuilder
Class ByteArrayCustomBuilder
java.lang.Object
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.
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 |
ByteArrayCustomBuilder
public ByteArrayCustomBuilder(java.lang.String encoding)
- Constructor
- Parameters:
encoding
-
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
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.