Class BlobOMDataSourceCustomBuilder
- java.lang.Object
-
- org.apache.axiom.om.ds.custombuilder.BlobOMDataSourceCustomBuilder
-
- All Implemented Interfaces:
CustomBuilder
public final class BlobOMDataSourceCustomBuilder extends Object implements CustomBuilder
CustomBuilderimplementation 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 OMDataSourcecreate(OMElement element)Create anOMDataSourcefrom 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: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
-
-