|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.value.BLOBFileValue
org.apache.jackrabbit.core.value.BLOBValue
public class BLOBValue
This class represents a binary value 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.
| Method Summary | |
|---|---|
void |
delete(boolean pruneEmptyParentDirs)
Deletes the persistent resource backing this BLOBFileValue. |
void |
discard()
Frees temporarily allocated resources such as temporary file, buffer, etc. |
boolean |
equals(java.lang.Object obj)
|
long |
getLength()
Returns the length of this BLOBFileValue. |
java.io.InputStream |
getStream()
Returns an InputStream representation of this value. |
int |
hashCode()
Returns zero to satisfy the Object equals/hashCode contract. |
boolean |
isImmutable()
Checks if this object is immutable. |
boolean |
isSmall()
Check if the value is small (contains a low number of bytes) and should be stored inline. |
java.lang.String |
toString()
Returns a string representation of this BLOBFileValue
instance. |
| Methods inherited from class org.apache.jackrabbit.core.value.BLOBFileValue |
|---|
spool |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public long getLength()
BLOBFileValue.
getLength in class BLOBFileValueBLOBFileValue,
or -1L if the length can't be determined.public void discard()
BLOBFileValue is backed by a persistent resource
calling this method will have no effect.
discard in class BLOBFileValuedelete(boolean)public void delete(boolean pruneEmptyParentDirs)
BLOBFileValue.
delete in class BLOBFileValuepruneEmptyParentDirs - if true, empty parent directories
will automatically be deletedpublic boolean isImmutable()
isImmutable in class BLOBFileValuepublic java.lang.String toString()
BLOBFileValue
instance. The string representation of a resource backed value is
the path of the underlying resource. If this instance is backed by an
in-memory buffer the generic object string representation of the byte
array will be used instead.
toString in class BLOBFileValueBLOBFileValue instance.public boolean equals(java.lang.Object obj)
equals in class BLOBFileValuepublic int hashCode()
hashCode in class BLOBFileValueObject.hashCode()
public java.io.InputStream getStream()
throws java.lang.IllegalStateException,
javax.jcr.RepositoryException
getStream in class BLOBFileValuejava.lang.IllegalStateException
javax.jcr.RepositoryExceptionpublic boolean isSmall()
isSmall in class BLOBFileValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||