jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r770194 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/BaseValue.java
Date Thu, 30 Apr 2009 12:21:52 GMT
Author: jukka
Date: Thu Apr 30 12:21:51 2009
New Revision: 770194

URL: http://svn.apache.org/viewvc?rev=770194&view=rev
Log:
JCR-2056: JSR 283: Binary interfaces

Add dummy implementation of Value.getBinary()

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/BaseValue.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/BaseValue.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/BaseValue.java?rev=770194&r1=770193&r2=770194&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/BaseValue.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/value/BaseValue.java
Thu Apr 30 12:21:51 2009
@@ -16,18 +16,19 @@
  */
 package org.apache.jackrabbit.value;
 
+import org.apache.jackrabbit.util.ISO8601;
+
+import javax.jcr.Binary;
+import javax.jcr.RepositoryException;
+import javax.jcr.UnsupportedRepositoryOperationException;
+import javax.jcr.Value;
+import javax.jcr.ValueFormatException;
 import java.io.ByteArrayInputStream;
 import java.io.InputStream;
 import java.io.UnsupportedEncodingException;
 import java.math.BigDecimal;
 import java.util.Calendar;
 
-import javax.jcr.RepositoryException;
-import javax.jcr.Value;
-import javax.jcr.ValueFormatException;
-
-import org.apache.jackrabbit.util.ISO8601;
-
 /**
  * This class is the superclass of the type-specific
  * classes implementing the <code>Value</code> interfaces.
@@ -217,6 +218,15 @@
     /**
      * {@inheritDoc}
      */
+    public Binary getBinary()
+            throws ValueFormatException, IllegalStateException,
+            RepositoryException {
+        throw new UnsupportedRepositoryOperationException("JCR-2056");
+    }
+
+    /**
+     * {@inheritDoc}
+     */
     public String getString()
             throws ValueFormatException, IllegalStateException,
             RepositoryException {



Mime
View raw message