Session.getValueFactory()
and then ValueFactory.createBinary(java.io.InputStream)
instead.public class BinaryInFile extends Object implements javax.jcr.Binary
Constructor and Description |
---|
BinaryInFile(File file)
Deprecated.
|
public BinaryInFile(File file)
public InputStream getStream() throws javax.jcr.RepositoryException
getStream
in interface javax.jcr.Binary
javax.jcr.RepositoryException
public int read(byte[] b, long position) throws IOException, javax.jcr.RepositoryException
read
in interface javax.jcr.Binary
IOException
javax.jcr.RepositoryException
public long getSize() throws javax.jcr.RepositoryException
getSize
in interface javax.jcr.Binary
javax.jcr.RepositoryException
public void dispose()
dispose
in interface javax.jcr.Binary
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.