Class BlobOMDataSourceCustomBuilder
java.lang.Object
org.apache.axiom.om.ds.custombuilder.BlobOMDataSourceCustomBuilder
- All Implemented Interfaces:
CustomBuilder
CustomBuilder
implementation that creates a BlobOMDataSource
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.axiom.om.ds.custombuilder.CustomBuilder
CustomBuilder.Selector
-
Constructor Summary
ConstructorsConstructorDescriptionBlobOMDataSourceCustomBuilder
(WritableBlobFactory<?> blobFactory, String encoding) Constructor. -
Method Summary
-
Constructor Details
-
BlobOMDataSourceCustomBuilder
Constructor.- Parameters:
blobFactory
- determines the type of blobs to createencoding
- the encoding used to store data in the blobs
-
-
Method Details
-
create
Description copied from interface:CustomBuilder
Create anOMDataSource
from the givenOMElement
. The builder will use the returnedOMDataSource
to create anOMSourcedElement
replacing the originalOMElement
.- Specified by:
create
in interfaceCustomBuilder
- Parameters:
element
- The element to convert into anOMDataSource
. The implementation is expected to consume the element using methods such asOMContainer.getXMLStreamReader(boolean)
,OMContainer.getSAXSource(boolean)
orOMSerializable.serialize(XMLStreamWriter, boolean)
withpreserve=true
.- Returns:
- an
OMDataSource
with content that is equivalent to the original element - Throws:
OMException
-