info.magnolia.jcr.util
Class BinaryInFile
java.lang.Object
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$
BinaryInFile
public BinaryInFile(File file)
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–2014 Magnolia International Ltd.. All rights reserved.