public class LocalFsBlobStoreFile extends BlobStoreFile
BLOBSTORE_DATA_FILE, LOG, TMP_EXT, TMP_NAME_PATTERN| Constructor and Description |
|---|
LocalFsBlobStoreFile(File base,
boolean isTmp,
boolean mustBeNew) |
LocalFsBlobStoreFile(File base,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
commit() |
void |
delete() |
long |
getFileLength() |
InputStream |
getInputStream() |
String |
getKey() |
SettableBlobMeta |
getMetadata() |
long |
getModTime() |
OutputStream |
getOutputStream() |
boolean |
isTmp() |
void |
setMetadata(SettableBlobMeta meta) |
String |
toString() |
public LocalFsBlobStoreFile(File base, boolean isTmp, boolean mustBeNew)
public void delete()
throws IOException
delete in class BlobStoreFileIOExceptionpublic boolean isTmp()
isTmp in class BlobStoreFilepublic String getKey()
getKey in class BlobStoreFilepublic long getModTime()
throws IOException
getModTime in class BlobStoreFileIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class BlobStoreFileIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in class BlobStoreFileIOExceptionpublic void commit()
throws IOException
commit in class BlobStoreFileIOExceptionpublic void cancel()
throws IOException
cancel in class BlobStoreFileIOExceptionpublic SettableBlobMeta getMetadata()
getMetadata in class BlobStoreFilepublic void setMetadata(SettableBlobMeta meta)
setMetadata in class BlobStoreFilepublic long getFileLength()
getFileLength in class BlobStoreFileCopyright © 2021 The Apache Software Foundation. All rights reserved.