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