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 BlobStoreFile
IOException
public boolean isTmp()
isTmp
in class BlobStoreFile
public String getKey()
getKey
in class BlobStoreFile
public long getModTime() throws IOException
getModTime
in class BlobStoreFile
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class BlobStoreFile
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class BlobStoreFile
IOException
public void commit() throws IOException
commit
in class BlobStoreFile
IOException
public void cancel() throws IOException
cancel
in class BlobStoreFile
IOException
public SettableBlobMeta getMetadata()
getMetadata
in class BlobStoreFile
public void setMetadata(SettableBlobMeta meta)
setMetadata
in class BlobStoreFile
public long getFileLength()
getFileLength
in class BlobStoreFile
Copyright © 2022 The Apache Software Foundation. All rights reserved.