Class FormattingWriter
- java.lang.Object
-
- de.erichseifert.vectorgraphics2d.util.FormattingWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class FormattingWriter extends java.lang.Object implements java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description FormattingWriter(java.io.OutputStream out, java.lang.String encoding, java.lang.String eol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()longtell()FormattingWriterwrite(byte[] bytes)FormattingWriterwrite(java.lang.Number number)FormattingWriterwrite(java.lang.String str)FormattingWriterwrite(java.lang.String format, java.lang.Object... args)FormattingWriterwriteln()FormattingWriterwriteln(byte[] bytes)FormattingWriterwriteln(java.lang.Number number)FormattingWriterwriteln(java.lang.String string)FormattingWriterwriteln(java.lang.String format, java.lang.Object... args)
-
-
-
Method Detail
-
write
public FormattingWriter write(byte[] bytes) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public FormattingWriter write(java.lang.String str) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public FormattingWriter write(java.lang.String format, java.lang.Object... args) throws java.io.IOException
- Throws:
java.io.IOException
-
write
public FormattingWriter write(java.lang.Number number) throws java.io.IOException
- Throws:
java.io.IOException
-
writeln
public FormattingWriter writeln() throws java.io.IOException
- Throws:
java.io.IOException
-
writeln
public FormattingWriter writeln(byte[] bytes) throws java.io.IOException
- Throws:
java.io.IOException
-
writeln
public FormattingWriter writeln(java.lang.String string) throws java.io.IOException
- Throws:
java.io.IOException
-
writeln
public FormattingWriter writeln(java.lang.String format, java.lang.Object... args) throws java.io.IOException
- Throws:
java.io.IOException
-
writeln
public FormattingWriter writeln(java.lang.Number number) throws java.io.IOException
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
tell
public long tell()
-
-