info.magnolia.jcr.util
Class BinaryInFile

java.lang.Object
  extended by info.magnolia.jcr.util.BinaryInFile
All Implemented Interfaces:
javax.jcr.Binary

Deprecated. since 5.0 use Session.getValueFactory() and then ValueFactory.createBinary(java.io.InputStream) instead.

public class BinaryInFile
extends Object
implements javax.jcr.Binary

Represents binary data stored in a file on the file system.


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

Constructor Detail

BinaryInFile

public BinaryInFile(File file)
Deprecated. 
Method Detail

getStream

public InputStream getStream()
                      throws javax.jcr.RepositoryException
Deprecated. 
Specified by:
getStream in interface javax.jcr.Binary
Throws:
javax.jcr.RepositoryException

read

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

getSize

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

dispose

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

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Deprecated. 
Overrides:
equals in class Object


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.