jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r552909 - in /jackrabbit/trunk/contrib/spi: commons/src/test/java/org/apache/jackrabbit/value/QValueTest.java spi/src/main/java/org/apache/jackrabbit/spi/QValueFactory.java
Date Tue, 03 Jul 2007 16:55:02 GMT
Author: angela
Date: Tue Jul  3 09:55:01 2007
New Revision: 552909

URL: http://svn.apache.org/viewvc?view=rev&rev=552909
Log:
JCR-851 - Handling of binary properties (streams) in QValue interface

Modified:
    jackrabbit/trunk/contrib/spi/commons/src/test/java/org/apache/jackrabbit/value/QValueTest.java
    jackrabbit/trunk/contrib/spi/spi/src/main/java/org/apache/jackrabbit/spi/QValueFactory.java

Modified: jackrabbit/trunk/contrib/spi/commons/src/test/java/org/apache/jackrabbit/value/QValueTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/commons/src/test/java/org/apache/jackrabbit/value/QValueTest.java?view=diff&rev=552909&r1=552908&r2=552909
==============================================================================
--- jackrabbit/trunk/contrib/spi/commons/src/test/java/org/apache/jackrabbit/value/QValueTest.java
(original)
+++ jackrabbit/trunk/contrib/spi/commons/src/test/java/org/apache/jackrabbit/value/QValueTest.java
Tue Jul  3 09:55:01 2007
@@ -175,7 +175,7 @@
     }
 
     //-------------------------------------------------------------< BINARY >---
-    public void testNullBinaryValue() throws IOException {
+    public void testNullBinaryValue() throws IOException, RepositoryException {
         try {
             factory.create((byte[]) null);
             fail();

Modified: jackrabbit/trunk/contrib/spi/spi/src/main/java/org/apache/jackrabbit/spi/QValueFactory.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/spi/src/main/java/org/apache/jackrabbit/spi/QValueFactory.java?view=diff&rev=552909&r1=552908&r2=552909
==============================================================================
--- jackrabbit/trunk/contrib/spi/spi/src/main/java/org/apache/jackrabbit/spi/QValueFactory.java
(original)
+++ jackrabbit/trunk/contrib/spi/spi/src/main/java/org/apache/jackrabbit/spi/QValueFactory.java
Tue Jul  3 09:55:01 2007
@@ -24,6 +24,8 @@
 import java.io.InputStream;
 import java.util.Calendar;
 
+import javax.jcr.RepositoryException;
+
 /**
  * <code>QValueFactory</code>...
  */
@@ -61,11 +63,15 @@
     public QValue create(byte[] value);
 
     /**
-     * @param value
-     * @return
-     * @throws IOException
+     * Creates a QValue that contains the given binary stream.
+     * The given stream is consumed and closed by this method.
+     *
+     * @param value binary stream
+     * @return binary value
+     * @throws RepositoryException if the value could not be created
+     * @throws IOException if the stream can not be consumed
      */
-    public QValue create(InputStream value) throws IOException;
+    public QValue create(InputStream value) throws RepositoryException, IOException;
 
     /**
      * @param value
@@ -73,4 +79,4 @@
      * @throws IOException
      */
     public QValue create(File value) throws IOException;
-}
\ No newline at end of file
+}



Mime
View raw message