Package org.xmldb.api.modules
Interface BinaryResource
-
- All Superinterfaces:
java.lang.AutoCloseable,Resource
public interface BinaryResource extends Resource
Resource for encapsulation of binary data that is stored in the data base. Support for BinaryResources is optional. The standardgetContentmethod returns abyte[]and the standard setContent expects anbyte[].
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ResourceTypegetResourceType()Returns the resource type for this Resource.-
Methods inherited from interface org.xmldb.api.base.Resource
close, getContent, getContentAsStream, getCreationTime, getId, getLastModificationTime, getParentCollection, isClosed, setContent
-
-
-
-
Method Detail
-
getResourceType
default ResourceType getResourceType()
Description copied from interface:ResourceReturns the resource type for this Resource. XML:DB defined resource types are: XMLResource - all XML data stored in the database BinaryResource - Binary blob data stored in the database- Specified by:
getResourceTypein interfaceResource- Returns:
- the resource type for the Resource.
-
-