|
||||||||||
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(Object obj)
|
abstract long |
getLength()
Returns the length of this BLOBFileValue . |
abstract 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(OutputStream out)
|
abstract 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 InputStream getStream() throws RepositoryException
RepositoryException
public abstract long getLength()
BLOBFileValue
.
BLOBFileValue
,
or -1L if the length can't be determined.
IOException
public 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(Object obj)
equals
in class Object
public abstract String toString()
toString
in class Object
public void spool(OutputStream out) throws RepositoryException, IOException
RepositoryException
IOException
public abstract int hashCode()
hashCode
in class Object
public abstract boolean isSmall()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |