org.openrdf.store.blob.disk
Class LiveDiskBlob

java.lang.Object
  extended by org.openrdf.store.blob.BlobObject
      extended by org.openrdf.store.blob.disk.LiveDiskBlob
All Implemented Interfaces:
javax.tools.FileObject

public class LiveDiskBlob
extends BlobObject


Constructor Summary
protected LiveDiskBlob(DiskBlobStore store, String uri)
           
 
Method Summary
 boolean delete()
           
 boolean equals(Object obj)
           
 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.
 InputStream openInputStream()
           
 OutputStream openOutputStream()
           
 
Methods inherited from class org.openrdf.store.blob.BlobObject
getCharContent, getName, openReader, openWriter, toString, toUri
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LiveDiskBlob

protected LiveDiskBlob(DiskBlobStore store,
                       String uri)
                throws IOException
Throws:
IOException
Method Detail

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.