org.apache.jackrabbit.commons.jackrabbit
Class SimpleReferenceBinary

java.lang.Object
  extended by org.apache.jackrabbit.commons.jackrabbit.SimpleReferenceBinary
All Implemented Interfaces:
Binary, org.apache.jackrabbit.api.ReferenceBinary

public class SimpleReferenceBinary
extends Object
implements org.apache.jackrabbit.api.ReferenceBinary


Constructor Summary
SimpleReferenceBinary(String reference)
           
 
Method Summary
 void dispose()
           
 String getReference()
           
 long getSize()
           
 InputStream getStream()
           
 int read(byte[] b, long position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleReferenceBinary

public SimpleReferenceBinary(String reference)
Method Detail

getReference

public String getReference()
Specified by:
getReference in interface org.apache.jackrabbit.api.ReferenceBinary

getStream

public InputStream getStream()
                      throws RepositoryException
Specified by:
getStream in interface Binary
Throws:
RepositoryException

read

public int read(byte[] b,
                long position)
         throws IOException,
                RepositoryException
Specified by:
read in interface Binary
Throws:
IOException
RepositoryException

getSize

public long getSize()
             throws RepositoryException
Specified by:
getSize in interface Binary
Throws:
RepositoryException

dispose

public void dispose()
Specified by:
dispose in interface Binary


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.