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()
ReferenceBinary
null
if such
a reference is not available.getReference
in interface ReferenceBinary
null
public InputStream getStream() throws javax.jcr.RepositoryException
getStream
in interface javax.jcr.Binary
javax.jcr.RepositoryException
public int read(byte[] b, long position) throws IOException, javax.jcr.RepositoryException
read
in interface javax.jcr.Binary
IOException
javax.jcr.RepositoryException
public long getSize() throws javax.jcr.RepositoryException
getSize
in interface javax.jcr.Binary
javax.jcr.RepositoryException
public void dispose()
dispose
in interface javax.jcr.Binary
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.