public class FsBlobContainer extends AbstractBlobContainer
BlobContainer.BlobNameFilter
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 |
deleteBlobsByFilter, deleteBlobsByPrefix, path
protected 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
IOException
public com.google.common.collect.ImmutableMap<String,BlobMetaData> listBlobsByPrefix(String blobNamePrefix) throws IOException
listBlobsByPrefix
in interface BlobContainer
listBlobsByPrefix
in class AbstractBlobContainer
IOException
public boolean deleteBlob(String blobName) throws IOException
IOException
public boolean blobExists(String blobName)
public InputStream openInput(String name) throws IOException
BlobContainer
InputStream
for the given blob nameIOException
public OutputStream createOutput(String blobName) throws IOException
BlobContainer
IOException
Copyright © 2009–2015. All rights reserved.