public class URLBlobContainer extends AbstractBlobContainer
BlobContainer
BlobContainer.BlobNameFilter
Modifier and Type | Field and Description |
---|---|
protected URLBlobStore |
blobStore |
protected URL |
path |
Constructor and Description |
---|
URLBlobContainer(URLBlobStore blobStore,
BlobPath blobPath,
URL path)
Constructs new URLBlobContainer
|
Modifier and Type | Method and Description |
---|---|
boolean |
blobExists(String blobName)
This operation is not supported by URLBlobContainer
|
OutputStream |
createOutput(String blobName)
Creates a new OutputStream for the given blob name
|
boolean |
deleteBlob(String blobName)
This operation is not supported by URLBlobContainer
|
com.google.common.collect.ImmutableMap<String,BlobMetaData> |
listBlobs()
This operation is not supported by URLBlobContainer
|
com.google.common.collect.ImmutableMap<String,BlobMetaData> |
listBlobsByPrefix(String blobNamePrefix)
This operation is not supported by URLBlobContainer
|
InputStream |
openInput(String name)
Creates a new
InputStream for the given blob name |
URL |
url()
Returns URL for this container
|
deleteBlobsByFilter, deleteBlobsByPrefix, path
protected final URLBlobStore blobStore
protected final URL path
public URLBlobContainer(URLBlobStore blobStore, BlobPath blobPath, URL path)
blobStore
- blob storeblobPath
- blob path for this containerpath
- URL for this containerpublic URL url()
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.