public abstract class BlobStoreFile extends Object
Provides an base implementation for creating a blobstore based on file backed storage.
Modifier and Type | Field and Description |
---|---|
protected static String |
BLOBSTORE_DATA_FILE |
static org.slf4j.Logger |
LOG |
protected static String |
TMP_EXT |
protected static Pattern |
TMP_NAME_PATTERN |
Constructor and Description |
---|
BlobStoreFile() |
Modifier and Type | Method and Description |
---|---|
abstract void |
cancel() |
abstract void |
commit() |
abstract void |
delete() |
abstract long |
getFileLength() |
abstract InputStream |
getInputStream() |
abstract String |
getKey() |
abstract SettableBlobMeta |
getMetadata() |
abstract long |
getModTime() |
abstract OutputStream |
getOutputStream() |
abstract boolean |
isTmp() |
abstract void |
setMetadata(SettableBlobMeta meta) |
public static final org.slf4j.Logger LOG
protected static final String TMP_EXT
protected static final Pattern TMP_NAME_PATTERN
protected static final String BLOBSTORE_DATA_FILE
public abstract void delete() throws IOException
IOException
public abstract String getKey()
public abstract boolean isTmp()
public abstract SettableBlobMeta getMetadata()
public abstract void setMetadata(SettableBlobMeta meta)
public abstract long getModTime() throws IOException
IOException
public abstract InputStream getInputStream() throws IOException
IOException
public abstract OutputStream getOutputStream() throws IOException
IOException
public abstract void commit() throws IOException
IOException
public abstract void cancel() throws IOException
IOException
public abstract long getFileLength() throws IOException
IOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.