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 voiddispose()java.lang.StringgetReference()Returns a secure reference to this binary, ornullif such a reference is not available.longgetSize()java.io.InputStreamgetStream()intread(byte[] b, long position)
-
-
-
Method Detail
-
getReference
public java.lang.String getReference()
Description copied from interface:ReferenceBinaryReturns a secure reference to this binary, ornullif such a reference is not available.- Specified by:
getReferencein interfaceReferenceBinary- Returns:
- binary reference, or
null
-
getStream
public java.io.InputStream getStream() throws RepositoryException- Specified by:
getStreamin interfaceBinary- Throws:
RepositoryException
-
read
public int read(byte[] b, long position) throws java.io.IOException, RepositoryException- Specified by:
readin interfaceBinary- Throws:
java.io.IOExceptionRepositoryException
-
getSize
public long getSize() throws RepositoryException- Specified by:
getSizein interfaceBinary- Throws:
RepositoryException
-
-