Class QValueFactoryImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.value.AbstractQValueFactory
-
- org.apache.jackrabbit.spi.commons.value.QValueFactoryImpl
-
- All Implemented Interfaces:
QValueFactory
public class QValueFactoryImpl extends AbstractQValueFactory
QValueFactoryImpl...
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.spi.commons.value.AbstractQValueFactory
DEFAULT_ENCODING, NAME_FACTORY, PATH_FACTORY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedQValueFactoryImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QValuecreate(byte[] value)Create a newQValuewith typePropertyType.BINARY.QValuecreate(File value)Create a newQValuewith typePropertyType.BINARY.QValuecreate(InputStream value)Creates a QValue that contains the given binary stream.static QValueFactorygetInstance()-
Methods inherited from class org.apache.jackrabbit.spi.commons.value.AbstractQValueFactory
computeAutoValues, create, create, create, create, create, create, create, create, create, createReference, createString
-
-
-
-
Method Detail
-
getInstance
public static QValueFactory getInstance()
-
create
public QValue create(byte[] value)
Description copied from interface:QValueFactoryCreate a newQValuewith typePropertyType.BINARY.- Returns:
- a new
QValue. - See Also:
QValueFactory.create(byte[])
-
create
public QValue create(InputStream value) throws IOException
Description copied from interface:QValueFactoryCreates a QValue that contains the given binary stream. The given stream is consumed and closed by this method. The type of the resulting QValue will bePropertyType.BINARY.- Parameters:
value- binary stream- Returns:
- a new binary
QValue. - Throws:
IOException- if the stream can not be consumed- See Also:
QValueFactory.create(InputStream)
-
create
public QValue create(File value) throws IOException
Description copied from interface:QValueFactoryCreate a newQValuewith typePropertyType.BINARY.- Returns:
- a new binary
QValue. - Throws:
IOException- See Also:
QValueFactory.create(File)
-
-