public class HierarchicalBlobManager extends SimpleBlobManager
blobsDir, copyright, dataFileNamePattern, logger, metaFileNamePattern| Constructor and Description |
|---|
HierarchicalBlobManager(File blobsDir,
String metaFileNamePattern,
String dataFileNamePattern) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(Blob blob) |
protected File |
getBlobSubdir(String code) |
protected File |
getDataFile(String code) |
protected File |
getMetaFile(String code) |
InputStream |
openStream(Blob blob) |
void |
save(Blob blob) |
ensureValidCode, getBlobsDir, getDataFileNamePattern, getMetaFileNamePattern, loadMetadata, loadMetaProperties, setBlobsDir, setDataFileNamePattern, setMetaFileNamePatternprotected File getMetaFile(String code)
getMetaFile in class SimpleBlobManagerprotected File getDataFile(String code)
getDataFile in class SimpleBlobManagerpublic InputStream openStream(Blob blob) throws IOException
openStream in interface BlobManageropenStream in class SimpleBlobManagerIOExceptionpublic void save(Blob blob) throws IOException
save in interface BlobManagersave in class SimpleBlobManagerIOExceptionpublic boolean delete(Blob blob)
delete in interface BlobManagerdelete in class SimpleBlobManagerCopyright © 2022 MANYDESIGNS s.r.l.. All rights reserved.