incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1463853 - in /incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle: SaveHandler.java SysoutHandler.java WriterHandler.java
Date Wed, 03 Apr 2013 07:48:05 GMT
Author: tobr
Date: Wed Apr  3 07:48:04 2013
New Revision: 1463853

URL: http://svn.apache.org/r1463853
Log:
WriterHandler is a utility class and should hide the constructor.
Access methods in a static way.

Modified:
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/SaveHandler.java
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/SysoutHandler.java
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/WriterHandler.java

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/SaveHandler.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/SaveHandler.java?rev=1463853&r1=1463852&r2=1463853&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/SaveHandler.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/SaveHandler.java
Wed Apr  3 07:48:04 2013
@@ -39,7 +39,7 @@ import org.slf4j.LoggerFactory;
  *
  * @version 1.0
  */
-public class SaveHandler extends WriterHandler implements Handler {
+public class SaveHandler implements Handler {
 
     private final Logger log = LoggerFactory.getLogger(SaveHandler.class);
 

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/SysoutHandler.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/SysoutHandler.java?rev=1463853&r1=1463852&r2=1463853&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/SysoutHandler.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/SysoutHandler.java
Wed Apr  3 07:48:04 2013
@@ -30,7 +30,7 @@ import java.util.Set;
  *
  * @version 1.0
  */
-public class SysoutHandler extends WriterHandler implements Handler {
+public class SysoutHandler implements Handler {
     private Set<String> attributes;
     private static final Logger logger = LoggerFactory.getLogger(SysoutHandler.class);
 
@@ -50,7 +50,7 @@ public class SysoutHandler extends Write
     private static void writeOutput(InputStream stream) throws IOException {
         Reader reader = new InputStreamReader(stream);
         Writer output = new OutputStreamWriter(System.out);
-        pipe(reader, output);
+        WriterHandler.pipe(reader, output);
     }
 
     @Override

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/WriterHandler.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/WriterHandler.java?rev=1463853&r1=1463852&r2=1463853&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/WriterHandler.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/handle/WriterHandler.java
Wed Apr  3 07:48:04 2013
@@ -31,6 +31,13 @@ public class WriterHandler {
     private static final int BUFFER_SIZE = 1024;
 
     /**
+     * hide constructor
+     */
+    private WriterHandler() {
+
+    }
+
+    /**
      * Pipes everything from the reader to the writer via a buffer
      *
      * @param reader the underlying read to read from



Mime
View raw message