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 RepositoryException
getStream in interface BinaryRepositoryExceptionpublic int read(byte[] b,
long position)
throws IOException,
RepositoryException
read in interface BinaryIOExceptionRepositoryExceptionpublic long getSize()
throws RepositoryException
getSize in interface BinaryRepositoryExceptionCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.