Class SimpleReferenceBinary
- java.lang.Object
-
- org.apache.jackrabbit.commons.jackrabbit.SimpleReferenceBinary
-
- All Implemented Interfaces:
javax.jcr.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 javax.jcr.RepositoryException- Specified by:
getStreamin interfacejavax.jcr.Binary- Throws:
javax.jcr.RepositoryException
-
read
public int read(byte[] b, long position) throws java.io.IOException, javax.jcr.RepositoryException- Specified by:
readin interfacejavax.jcr.Binary- Throws:
java.io.IOExceptionjavax.jcr.RepositoryException
-
getSize
public long getSize() throws javax.jcr.RepositoryException- Specified by:
getSizein interfacejavax.jcr.Binary- Throws:
javax.jcr.RepositoryException
-
dispose
public void dispose()
- Specified by:
disposein interfacejavax.jcr.Binary
-
-