jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1129526 - in /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk: MicroKernelImpl.java api/MicroKernel.java
Date Tue, 31 May 2011 07:44:47 GMT
Author: thomasm
Date: Tue May 31 07:44:47 2011
New Revision: 1129526

URL: http://svn.apache.org/viewvc?rev=1129526&view=rev
Log:
Allow to read within a blob (required for larger blobs).

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java?rev=1129526&r1=1129525&r2=1129526&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/MicroKernelImpl.java
Tue May 31 07:44:47 2011
@@ -366,7 +366,7 @@ public class MicroKernelImpl implements 
         return 0;
     }
 
-    public int read(String blobId, byte[] buf, int off, int length) throws MicroKernelException
{
+    public int read(String blobId, long pos, byte[] buff, int off, int length) throws MicroKernelException
{
         if (rep == null) {
             throw new IllegalStateException("this instance has already been disposed");
         }

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java?rev=1129526&r1=1129525&r2=1129526&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/api/MicroKernel.java
Tue May 31 07:44:47 2011
@@ -299,7 +299,8 @@ public interface MicroKernel {
      * The number of bytes actually read is returned as an integer.
      *
      * @param blobId blob identifier
-     * @param buf the buffer into which the data is read.
+     * @param pos the offset within the blob
+     * @param buff the buffer into which the data is read.
      * @param off the start offset in array <code>buff</code>
      *            at which the data is written.
      * @param length the maximum number of bytes to read
@@ -308,7 +309,7 @@ public interface MicroKernel {
      *         the blob content has been reached.
      * @throws MicroKernelException if an error occurs
      */
-    int /* count */ read(String blobId, byte[] buf, int off, int length)
+    int /* count */ read(String blobId, long pos, byte[] buff, int off, int length)
             throws MicroKernelException;
 
     /**



Mime
View raw message