public class RefCountingBLOBFileValue extends Object
RefCountingBLOBFileValue
implements a reference counting BLOB
file value on top of an existing BLOBFileValue
. Whenever a
copy()
is created from this BLOB file value, a new light weight
RefCountBinary
is created and the reference count refCount
is incremented. The underlying value is discarded once this
RefCountingBLOBFileValue
and all its light weight
RefCountBinary
instances have been discarded.Constructor and Description |
---|
RefCountingBLOBFileValue(org.apache.jackrabbit.core.value.BLOBFileValue value)
Creates a new reference counting blob file value based on the given
value . |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Discards the underlying value if the reference count drops to zero.
|
boolean |
equals(Object obj) |
protected void |
finalize() |
long |
getSize() |
InputStream |
getStream() |
int |
hashCode() |
int |
read(byte[] b,
long position) |
String |
toString() |
public RefCountingBLOBFileValue(org.apache.jackrabbit.core.value.BLOBFileValue value)
value
.value
- the underlying value.public void dispose()
public boolean equals(Object obj)
public String toString()
public int hashCode()
public long getSize() throws RepositoryException
RepositoryException
public InputStream getStream() throws RepositoryException
RepositoryException
protected void finalize() throws Throwable
public int read(byte[] b, long position) throws IOException, RepositoryException
read
in interface Binary
IOException
RepositoryException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.