public interface BLOBStore
BLOBStore represents an abstract store for binary property
 values (BLOBs).
 Note that The DataStore should nowadays be used instead of the BLOBStore. This interface and the implementing classes are kept mostly for backwards compatibility.
ResourceBasedBLOBStore| Modifier and Type | Method and Description | 
|---|---|
| String | createId(PropertyId id,
        int index)Creates a unique identifier for the BLOB data associated with the given
 property id and value subscript. | 
| InputStream | get(String blobId)Retrieves the BLOB data with the specified id as a binary stream. | 
| void | put(String blobId,
   InputStream in,
   long size)Stores the BLOB data and returns a unique identifier. | 
| boolean | remove(String blobId)Removes the BLOB data with the specified id. | 
String createId(PropertyId id, int index)
id - id of the property associated with the BLOB dataindex - subscript of the value holding the BLOB datavoid put(String blobId, InputStream in, long size) throws Exception
blobId - identifier of the BLOB data as returned by
               createId(PropertyId, int)in - stream containing the BLOB datasize - size of the BLOB dataException - if an error occuredInputStream get(String blobId) throws Exception
blobId - identifier of the BLOB data as returned by
               createId(PropertyId, int)Exception - if an error occuredboolean remove(String blobId) throws Exception
blobId - identifier of the BLOB data as returned by
               createId(PropertyId, int)true if BLOB data with the given id exists and has
         been successfully removed, false if there's no BLOB
         data with the given id.Exception - if an error occuredCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.