|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.persistence.util.FileSystemBLOBStore
public class FileSystemBLOBStore
FileSystemBLOBStore is a ResourceBasedBLOBStore
implementation that stores BLOB data in a FileSystem.
| Constructor Summary | |
|---|---|
FileSystemBLOBStore(FileSystem fs)
Deprecated. Creates a new FileSystemBLOBStore instance. |
|
| Method Summary | |
|---|---|
String |
createId(PropertyId id,
int index)
Deprecated. Creates a unique identifier for the BLOB data associated with the given property id and value subscript. |
InputStream |
get(String blobId)
Deprecated. Retrieves the BLOB data with the specified id as a binary stream. |
FileSystemResource |
getResource(String blobId)
Deprecated. Retrieves the BLOB data with the specified id as a permanent resource. |
void |
put(String blobId,
InputStream in,
long size)
Deprecated. Stores the BLOB data and returns a unique identifier. |
boolean |
remove(String blobId)
Deprecated. Removes the BLOB data with the specified id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemBLOBStore(FileSystem fs)
FileSystemBLOBStore instance.
fs - file system for storing the BLOB data| Method Detail |
|---|
public String createId(PropertyId id,
int index)
createId in interface BLOBStoreid - id of the property associated with the BLOB dataindex - subscript of the value holding the BLOB data
public InputStream get(String blobId)
throws Exception
get in interface BLOBStoreblobId - identifier of the BLOB data as returned by
BLOBStore.createId(PropertyId, int)
Exception - if an error occured
public void put(String blobId,
InputStream in,
long size)
throws Exception
put in interface BLOBStoreblobId - identifier of the BLOB data as returned by
BLOBStore.createId(PropertyId, int)in - stream containing the BLOB datasize - size of the BLOB data
Exception - if an error occured
public boolean remove(String blobId)
throws Exception
remove in interface BLOBStoreblobId - identifier of the BLOB data as returned by
BLOBStore.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 occured
public FileSystemResource getResource(String blobId)
throws Exception
getResource in interface ResourceBasedBLOBStoreblobId - identifier of the BLOB data as returned by
BLOBStore.createId(PropertyId, int)
Exception - if an error occured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||