public class FsBlobContainer extends AbstractBlobContainer
| Modifier and Type | Field and Description |
|---|---|
protected FsBlobStore |
blobStore |
protected File |
path |
| Constructor and Description |
|---|
FsBlobContainer(FsBlobStore blobStore,
BlobPath blobPath,
File path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
blobExists(String blobName) |
OutputStream |
createOutput(String blobName)
Creates a new OutputStream for the given blob name
|
boolean |
deleteBlob(String blobName) |
File |
filePath() |
com.google.common.collect.ImmutableMap<String,BlobMetaData> |
listBlobs() |
com.google.common.collect.ImmutableMap<String,BlobMetaData> |
listBlobsByPrefix(String blobNamePrefix) |
InputStream |
openInput(String name)
Creates a new
InputStream for the given blob name |
deleteBlobsByPrefix, pathprotected final FsBlobStore blobStore
protected final File path
public FsBlobContainer(FsBlobStore blobStore, BlobPath blobPath, File path)
public File filePath()
public com.google.common.collect.ImmutableMap<String,BlobMetaData> listBlobs() throws IOException
IOExceptionpublic com.google.common.collect.ImmutableMap<String,BlobMetaData> listBlobsByPrefix(String blobNamePrefix) throws IOException
IOExceptionpublic boolean deleteBlob(String blobName) throws IOException
IOExceptionpublic boolean blobExists(String blobName)
public InputStream openInput(String name) throws IOException
BlobContainerInputStream for the given blob nameIOExceptionpublic OutputStream createOutput(String blobName) throws IOException
BlobContainerIOExceptionCopyright © 2009–2016. All rights reserved.