info.magnolia.jcr.util
Class BinaryInFile

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

public class BinaryInFile
extends Object
implements javax.jcr.Binary

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

Version:
$Id$

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

Constructor Detail

BinaryInFile

public BinaryInFile(File file)
Method Detail

getStream

public 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 IOException,
                javax.jcr.RepositoryException
Specified by:
read in interface javax.jcr.Binary
Throws:
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

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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