commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1187871 - in /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils: CountingInputStream.java CountingOutputStream.java
Date Sun, 23 Oct 2011 11:52:57 GMT
Author: bodewig
Date: Sun Oct 23 11:52:56 2011
New Revision: 1187871

URL: http://svn.apache.org/viewvc?rev=1187871&view=rev
Log:
Those classes are so much more useful with public constructors

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/CountingInputStream.java
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/CountingOutputStream.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/CountingInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/CountingInputStream.java?rev=1187871&r1=1187870&r2=1187871&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/CountingInputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/CountingInputStream.java
Sun Oct 23 11:52:56 2011
@@ -31,7 +31,7 @@ import java.util.concurrent.atomic.Atomi
 public class CountingInputStream extends FilterInputStream {
     private final AtomicLong bytesRead = new AtomicLong();
 
-    private CountingInputStream(final InputStream in) {
+    public CountingInputStream(final InputStream in) {
         super(in);
     }
 

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/CountingOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/CountingOutputStream.java?rev=1187871&r1=1187870&r2=1187871&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/CountingOutputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/utils/CountingOutputStream.java
Sun Oct 23 11:52:56 2011
@@ -31,7 +31,7 @@ import java.util.concurrent.atomic.Atomi
 public class CountingOutputStream extends FilterOutputStream {
     private final AtomicLong bytesWritten = new AtomicLong();
 
-    private CountingOutputStream(final OutputStream out) {
+    public CountingOutputStream(final OutputStream out) {
         super(out);
     }
 



Mime
View raw message