public class DiskBlob extends BlobObject implements DiskListener
| Modifier | Constructor and Description |
|---|---|
protected |
DiskBlob(DiskBlobVersion disk,
String uri) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
abort() |
void |
changed(String uri) |
boolean |
delete() |
boolean |
equals(Object obj) |
protected boolean |
erase() |
String |
getCommittedVersion()
Identifier of the most recent committed blob version that is read by this
BlobObject. |
long |
getLastModified() |
long |
getLength()
Returns the number of bytes in the BLOB value designated by this Blob
object.
|
String[] |
getRecentVersions()
Most recent version identifiers that have committed modifications of this
blob.
|
protected boolean |
hasConflict() |
protected boolean |
isChangePending() |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
protected boolean |
resync() |
protected boolean |
sync() |
getCharContent, getName, openReader, openWriter, toString, toUriprotected DiskBlob(DiskBlobVersion disk, String uri)
public boolean equals(Object obj)
equals in class BlobObjectpublic String getCommittedVersion() throws IOException
BlobObjectBlobObject. This method can be used after committing a
BlobVersion to retrieve the committed version identifier, which
can later be passed to BlobStore.openVersion(String) to reread
this version of this blob.getCommittedVersion in class BlobObjectIOExceptionpublic String[] getRecentVersions() throws IOException
BlobObjectgetRecentVersions in class BlobObjectIOExceptionpublic boolean delete()
delete in interface FileObjectpublic long getLength()
throws IOException
BlobObjectgetLength in class BlobObjectIOExceptionpublic long getLastModified()
getLastModified in interface FileObjectpublic InputStream openInputStream() throws IOException
openInputStream in interface FileObjectIOExceptionpublic OutputStream openOutputStream() throws IOException
openOutputStream in interface FileObjectIOExceptionpublic void changed(String uri)
changed in interface DiskListenerprotected boolean hasConflict()
protected boolean isChangePending()
protected boolean resync()
throws IOException
IOExceptionprotected boolean sync()
throws IOException
IOExceptionprotected void abort()
protected boolean erase()
throws IOException
IOExceptionCopyright © 2016 Chair of Distributed Information Systems - University of Passau. All rights reserved.