Class SimpleReferenceBinary

  • All Implemented Interfaces:
    javax.jcr.Binary, ReferenceBinary

    public class SimpleReferenceBinary
    extends java.lang.Object
    implements ReferenceBinary
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleReferenceBinary​(java.lang.String reference)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      java.lang.String getReference()
      Returns a secure reference to this binary, or null if such a reference is not available.
      long getSize()  
      java.io.InputStream getStream()  
      int read​(byte[] b, long position)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleReferenceBinary

        public SimpleReferenceBinary​(java.lang.String reference)
    • Method Detail

      • getReference

        public java.lang.String getReference()
        Description copied from interface: ReferenceBinary
        Returns a secure reference to this binary, or null if such a reference is not available.
        Specified by:
        getReference in interface ReferenceBinary
        Returns:
        binary reference, or null
      • getStream

        public java.io.InputStream getStream()
                                      throws javax.jcr.RepositoryException
        Specified by:
        getStream in interface javax.jcr.Binary
        Throws:
        javax.jcr.RepositoryException
      • read

        public int read​(byte[] b,
                        long position)
                 throws java.io.IOException,
                        javax.jcr.RepositoryException
        Specified by:
        read in interface javax.jcr.Binary
        Throws:
        java.io.IOException
        javax.jcr.RepositoryException
      • getSize

        public long getSize()
                     throws javax.jcr.RepositoryException
        Specified by:
        getSize in interface javax.jcr.Binary
        Throws:
        javax.jcr.RepositoryException
      • dispose

        public void dispose()
        Specified by:
        dispose in interface javax.jcr.Binary