org.openrdf.store.blob.disk
Class LiveDiskBlob
java.lang.Object
org.openrdf.store.blob.BlobObject
org.openrdf.store.blob.disk.LiveDiskBlob
- All Implemented Interfaces:
- javax.tools.FileObject
public class LiveDiskBlob
- extends BlobObject
LiveDiskBlob
protected LiveDiskBlob(DiskBlobStore store,
String uri)
throws IOException
- Throws:
IOException
openOutputStream
public OutputStream openOutputStream()
throws IOException
- Throws:
IOException
delete
public boolean delete()
getLength
public long getLength()
throws IOException
- Description copied from class:
BlobObject
- Returns the number of bytes in the BLOB value designated by this Blob
object.
- Specified by:
getLength in class BlobObject
- Returns:
- length of the BLOB in bytes
- Throws:
IOException
getLastModified
public long getLastModified()
equals
public boolean equals(Object obj)
- Specified by:
equals in class BlobObject
getRecentVersions
public String[] getRecentVersions()
throws IOException
- Description copied from class:
BlobObject
- Most recent version identifiers that have committed modifications of this
blob. The first identifier in the response is the most recent.
- Specified by:
getRecentVersions in class BlobObject
- Throws:
IOException
getCommittedVersion
public String getCommittedVersion()
throws IOException
- Description copied from class:
BlobObject
- Identifier of the most recent committed blob version that is read by this
BlobObject. 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.
- Specified by:
getCommittedVersion in class BlobObject
- Returns:
- version identifier or null if this blob has no version
- Throws:
IOException
openInputStream
public InputStream openInputStream()
throws IOException
- Throws:
IOException
Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.