Class QValueFactoryImpl

    • Method Detail

      • 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 be PropertyType.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 new QValue with type PropertyType.BINARY.
        Returns:
        a new binary QValue.
        Throws:
        java.io.IOException
        See Also:
        QValueFactory.create(File)