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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QValue
create(byte[] value)
Create a newQValue
with typePropertyType.BINARY
.QValue
create(java.io.File value)
Create a newQValue
with typePropertyType.BINARY
.QValue
create(java.io.InputStream value)
Creates a QValue that contains the given binary stream.static QValueFactory
getInstance()
-
-
-
Method Detail
-
getInstance
public static QValueFactory getInstance()
-
create
public QValue create(byte[] value)
Description copied from interface:QValueFactory
Create a newQValue
with typePropertyType.BINARY
.- Returns:
- a new
QValue
. - See Also:
QValueFactory.create(byte[])
-
create
public QValue create(java.io.InputStream value) throws java.io.IOException
Description copied from interface:QValueFactory
Creates 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:
java.io.IOException
- if the stream can not be consumed- See Also:
QValueFactory.create(InputStream)
-
create
public QValue create(java.io.File value) throws java.io.IOException
Description copied from interface:QValueFactory
Create a newQValue
with typePropertyType.BINARY
.- Returns:
- a new binary
QValue
. - Throws:
java.io.IOException
- See Also:
QValueFactory.create(File)
-
-