You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2012/01/30 21:38:34 UTC

svn commit: r1237976 - /incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/lib/Bytes.java

Author: andy
Date: Mon Jan 30 20:38:33 2012
New Revision: 1237976

URL: http://svn.apache.org/viewvc?rev=1237976&view=rev
Log:
Change return type of toByteBuffer.

Modified:
    incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/lib/Bytes.java

Modified: incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/lib/Bytes.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/lib/Bytes.java?rev=1237976&r1=1237975&r2=1237976&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/lib/Bytes.java (original)
+++ incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/lib/Bytes.java Mon Jan 30 20:38:33 2012
@@ -264,14 +264,14 @@ public class Bytes
     }
 
     /** Encode a string into a ByteBuffer : on return position is the end of the encoding */
-    public static void toByteBuffer(CharSequence s, ByteBuffer bb)
+    public static int toByteBuffer(CharSequence s, ByteBuffer bb)
     {
         //BlockUTF8.fromChars(s, bb) ;
         // To be removed (Dec 2011)
         CharsetEncoder enc = Chars.allocEncoder();
         int x = toByteBuffer(s, bb, enc) ;
         Chars.deallocEncoder(enc) ;
-        //return x ;
+        return x ;
     }
     
     /** Encode a string into a ByteBuffer : on return position is the end of the encoding */