Class SimpleReferenceBinary
- java.lang.Object
-
- org.apache.jackrabbit.commons.jackrabbit.SimpleReferenceBinary
-
- All Implemented Interfaces:
Binary
,ReferenceBinary
public class SimpleReferenceBinary extends java.lang.Object implements ReferenceBinary
-
-
Constructor Summary
Constructors Constructor Description SimpleReferenceBinary(java.lang.String reference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
java.lang.String
getReference()
Returns a secure reference to this binary, ornull
if such a reference is not available.long
getSize()
java.io.InputStream
getStream()
int
read(byte[] b, long position)
-
-
-
Method Detail
-
getReference
public java.lang.String getReference()
Description copied from interface:ReferenceBinary
Returns a secure reference to this binary, ornull
if such a reference is not available.- Specified by:
getReference
in interfaceReferenceBinary
- Returns:
- binary reference, or
null
-
getStream
public java.io.InputStream getStream() throws RepositoryException
- Specified by:
getStream
in interfaceBinary
- Throws:
RepositoryException
-
read
public int read(byte[] b, long position) throws java.io.IOException, RepositoryException
- Specified by:
read
in interfaceBinary
- Throws:
java.io.IOException
RepositoryException
-
getSize
public long getSize() throws RepositoryException
- Specified by:
getSize
in interfaceBinary
- Throws:
RepositoryException
-
-