commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1064356 - in /commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary: BaseNCodec.java BaseNCodecOutputStream.java
Date Thu, 27 Jan 2011 23:32:15 GMT
Author: sebb
Date: Thu Jan 27 23:32:14 2011
New Revision: 1064356

URL: http://svn.apache.org/viewvc?rev=1064356&view=rev
Log:
Better name

Modified:
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BaseNCodec.java
    commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BaseNCodecOutputStream.java

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BaseNCodec.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BaseNCodec.java?rev=1064356&r1=1064355&r2=1064356&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BaseNCodec.java (original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BaseNCodec.java Thu
Jan 27 23:32:14 2011
@@ -156,7 +156,7 @@ public abstract class BaseNCodec impleme
      * 
      * @return The amount of buffered data available for reading.
      */
-    int avail() {  // package protected for access from I/O streams
+    int available() {  // package protected for access from I/O streams
         return buffer != null ? pos - readPos : 0;
     }
 
@@ -207,7 +207,7 @@ public abstract class BaseNCodec impleme
      */
     int readResults(byte[] b, int bPos, int bAvail) {  // package protected for access from
I/O streams
         if (buffer != null) {
-            int len = Math.min(avail(), bAvail);
+            int len = Math.min(available(), bAvail);
             System.arraycopy(buffer, readPos, b, bPos, len);
             readPos += len;
             if (readPos >= pos) {

Modified: commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BaseNCodecOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BaseNCodecOutputStream.java?rev=1064356&r1=1064355&r2=1064356&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BaseNCodecOutputStream.java
(original)
+++ commons/proper/codec/trunk/src/java/org/apache/commons/codec/binary/BaseNCodecOutputStream.java
Thu Jan 27 23:32:14 2011
@@ -94,7 +94,7 @@ public class BaseNCodecOutputStream exte
      *             if an I/O error occurs.
      */
     private void flush(boolean propogate) throws IOException {
-        int avail = baseNCodec.avail();
+        int avail = baseNCodec.available();
         if (avail > 0) {
             byte[] buf = new byte[avail];
             int c = baseNCodec.readResults(buf, 0, avail);



Mime
View raw message