public class SimpleReferenceBinary extends Object implements ReferenceBinary
| Constructor and Description |
|---|
SimpleReferenceBinary(String reference) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
String |
getReference()
Returns a secure reference to this binary, or
null if such
a reference is not available. |
long |
getSize() |
InputStream |
getStream() |
int |
read(byte[] b,
long position) |
public SimpleReferenceBinary(String reference)
public String getReference()
ReferenceBinarynull if such
a reference is not available.getReference in interface ReferenceBinarynullpublic InputStream getStream() throws javax.jcr.RepositoryException
getStream in interface javax.jcr.Binaryjavax.jcr.RepositoryExceptionpublic int read(byte[] b,
long position)
throws IOException,
javax.jcr.RepositoryException
read in interface javax.jcr.BinaryIOExceptionjavax.jcr.RepositoryExceptionpublic long getSize()
throws javax.jcr.RepositoryException
getSize in interface javax.jcr.Binaryjavax.jcr.RepositoryExceptionpublic void dispose()
dispose in interface javax.jcr.BinaryCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.