Class BlobOMDataSourceCustomBuilder
- java.lang.Object
-
- org.apache.axiom.om.ds.custombuilder.BlobOMDataSourceCustomBuilder
-
- All Implemented Interfaces:
CustomBuilder
public final class BlobOMDataSourceCustomBuilder extends Object implements CustomBuilder
CustomBuilder
implementation that creates aBlobOMDataSource
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.axiom.om.ds.custombuilder.CustomBuilder
CustomBuilder.Selector
-
-
Constructor Summary
Constructors Constructor Description BlobOMDataSourceCustomBuilder(WritableBlobFactory<?> blobFactory, String encoding)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OMDataSource
create(OMElement element)
Create anOMDataSource
from the givenOMElement
.
-
-
-
Constructor Detail
-
BlobOMDataSourceCustomBuilder
public BlobOMDataSourceCustomBuilder(WritableBlobFactory<?> blobFactory, String encoding)
Constructor.- Parameters:
blobFactory
- determines the type of blobs to createencoding
- the encoding used to store data in the blobs
-
-
Method Detail
-
create
public OMDataSource create(OMElement element) throws OMException
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
-
-