public class QValueFactoryImpl extends AbstractQValueFactory
QValueFactoryImpl...DEFAULT_ENCODING, NAME_FACTORY, PATH_FACTORY| Modifier | Constructor and Description |
|---|---|
protected |
QValueFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
QValue |
create(byte[] value)
Create a new
QValue with type PropertyType.BINARY. |
QValue |
create(File value)
Create a new
QValue with type PropertyType.BINARY. |
QValue |
create(InputStream value)
Creates a QValue that contains the given binary stream.
|
static QValueFactory |
getInstance() |
computeAutoValues, create, create, create, create, create, create, create, create, create, createReference, createStringpublic static QValueFactory getInstance()
public QValue create(byte[] value)
QValueFactoryQValue with type PropertyType.BINARY.QValue.QValueFactory.create(byte[])public QValue create(InputStream value) throws IOException
QValueFactoryPropertyType.BINARY.value - binary streamQValue.IOException - if the stream can not be consumedQValueFactory.create(InputStream)public QValue create(File value) throws IOException
QValueFactoryQValue with type PropertyType.BINARY.QValue.IOExceptionQValueFactory.create(File)Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.