|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.value.BLOBFileValue
public abstract class BLOBFileValue
Represents binary data which is backed by a resource or byte[].
Unlike BinaryValue it has no state, i.e.
the getStream() method always returns a fresh
InputStream instance.
javax.jcr.ValueFactory to create binary values.
| Constructor Summary | |
|---|---|
BLOBFileValue()
|
|
| Method Summary | |
|---|---|
abstract void |
delete(boolean pruneEmptyParentDirs)
Deletes the persistent resource backing this BLOBFileValue. |
abstract void |
discard()
Frees temporarily allocated resources such as temporary file, buffer, etc. |
abstract boolean |
equals(java.lang.Object obj)
|
abstract long |
getLength()
Returns the length of this BLOBFileValue. |
abstract java.io.InputStream |
getStream()
Returns an InputStream representation of this value. |
abstract int |
hashCode()
|
abstract boolean |
isImmutable()
Checks if this object is immutable. |
abstract boolean |
isSmall()
Check if the value is small (contains a low number of bytes) and should be stored inline. |
void |
spool(java.io.OutputStream out)
|
abstract java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BLOBFileValue()
| Method Detail |
|---|
public abstract java.io.InputStream getStream()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic abstract long getLength()
BLOBFileValue.
BLOBFileValue,
or -1L if the length can't be determined.
java.io.IOExceptionpublic abstract void discard()
BLOBFileValue is backed by a persistent resource
calling this method will have no effect.
#delete(),
delete(boolean)public abstract void delete(boolean pruneEmptyParentDirs)
BLOBFileValue.
pruneEmptyParentDirs - if true, empty parent directories
will automatically be deletedpublic abstract boolean isImmutable()
public abstract boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic abstract java.lang.String toString()
toString in class java.lang.Object
public void spool(java.io.OutputStream out)
throws javax.jcr.RepositoryException,
java.io.IOException
javax.jcr.RepositoryException
java.io.IOExceptionpublic abstract int hashCode()
hashCode in class java.lang.Objectpublic abstract boolean isSmall()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||