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:CustomBuilderCreate anOMDataSourcefrom the givenOMElement. The builder will use the returnedOMDataSourceto create anOMSourcedElementreplacing the originalOMElement.- Specified by:
createin 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
OMDataSourcewith content that is equivalent to the original element - Throws:
OMException
-