org.apache.jena.atlas.io
Class Writer2

java.lang.Object
  extended by org.apache.jena.atlas.io.AWriterBase
      extended by org.apache.jena.atlas.io.Writer2
All Implemented Interfaces:
AWriter, Closeable
Direct Known Subclasses:
StringWriterI

public class Writer2
extends AWriterBase
implements AWriter, Closeable

A Writer, without the checked exceptions.


Method Summary
 void close()
           
 void flush()
           
 void print(char ch)
           
 void print(char[] cbuf)
           
 void print(String string)
           
 void printf(String fmt, Object... args)
           
 void println()
           
 void println(String obj)
           
 String toString()
           
static Writer2 wrap(Writer writer)
           
 
Methods inherited from class org.apache.jena.atlas.io.AWriterBase
write, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jena.atlas.io.AWriter
write, write, write
 

Method Detail

wrap

public static Writer2 wrap(Writer writer)

print

public void print(char ch)
Specified by:
print in interface AWriter

print

public void print(String string)
Specified by:
print in interface AWriter

print

public void print(char[] cbuf)
Specified by:
print in interface AWriter

flush

public void flush()
Specified by:
flush in interface AWriter

close

public void close()
Specified by:
close in interface AWriter
Specified by:
close in interface Closeable

printf

public void printf(String fmt,
                   Object... args)
Specified by:
printf in interface AWriter

println

public void println(String obj)
Specified by:
println in interface AWriter

println

public void println()
Specified by:
println in interface AWriter

toString

public String toString()
Overrides:
toString in class Object


Licenced under the Apache License, Version 2.0