jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1230757 - /incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/io/BufferingWriter.java
Date Thu, 12 Jan 2012 20:25:04 GMT
Author: andy
Date: Thu Jan 12 20:25:03 2012
New Revision: 1230757

URL: http://svn.apache.org/viewvc?rev=1230757&view=rev
Log: (empty)

Modified:
    incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/io/BufferingWriter.java

Modified: incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/io/BufferingWriter.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/io/BufferingWriter.java?rev=1230757&r1=1230756&r2=1230757&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/io/BufferingWriter.java
(original)
+++ incubator/jena/Jena2/ARQ/trunk/src/main/java/org/openjena/atlas/io/BufferingWriter.java
Thu Jan 12 20:25:03 2012
@@ -92,23 +92,24 @@ public final class BufferingWriter exten
     // We use the same encoder for the life of this writer
     final private CharsetEncoder encoder;
 
-    /** Convenience operation to output to a WritableByteChannel */
-    public static BufferingWriter create(WritableByteChannel out)
-    {
-        return create(out, SIZE) ;
-    }
-    
-    /** Convenience operation to output to a WritableByteChannel */
-    public static BufferingWriter create(WritableByteChannel out, int size)
-    {
-        return new BufferingWriter(new SinkChannel(out), size, size/2) ;
-    }
-    
-    /** Writer(chars) over OutputStream (bytes) -- heavily buffered -- flushing may be needed
*/
-    public static BufferingWriter create(OutputStream out)
-    {
-        return new BufferingWriter(new SinkOutputStream(out), SIZE, BLOB_SIZE) ;
-    }
+//    /** Convenience operation to output to a WritableByteChannel */
+//    public static BufferingWriter create(WritableByteChannel out)
+//    {
+//        return create(out, SIZE) ;
+//    }
+//    
+//    /** Convenience operation to output to a WritableByteChannel */
+//    public static BufferingWriter create(WritableByteChannel out, int size)
+//    {
+//        return new BufferingWriter(new SinkChannel(out), size, size/2) ;
+//    }
+
+    // See IO.asBufferedUTF8
+//    /** Writer(chars) over OutputStream (bytes) -- heavily buffered -- flushing may be
needed */
+//    public static BufferingWriter create(OutputStream out)
+//    {
+//        return new BufferingWriter(new SinkOutputStream(out), SIZE, BLOB_SIZE) ;
+//    }
 
 
 //    /** Convenience operation to output to an OutputStream */
@@ -118,7 +119,7 @@ public final class BufferingWriter exten
 //    }
 
     /** Create a buffering output stream of charcaters to a {@link org.openjena.atlas.lib.Sink}
*/
-    public BufferingWriter(Sink<ByteBuffer> sink) { this(sink, SIZE, BLOB_SIZE) ; }
+    /*public*/private BufferingWriter(Sink<ByteBuffer> sink) { this(sink, SIZE, BLOB_SIZE)
; }
     
     /** Create a buffering output stream of charcaters to a {@link org.openjena.atlas.lib.Sink}
*/
     /*package*/ BufferingWriter(Sink<ByteBuffer> sink, int size, int blobSize)



Mime
View raw message