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 standard getContent method returns a byte[] and the standard setContent expects an byte[].
    • Method Detail

      • getResourceType

        default ResourceType getResourceType()
        Description copied from interface: Resource
        Returns 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:
        getResourceType in interface Resource
        Returns:
        the resource type for the Resource.