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 void
close()
void
flush()
long
tell()
FormattingWriter
write(byte[] bytes)
FormattingWriter
write(java.lang.Number number)
FormattingWriter
write(java.lang.String str)
FormattingWriter
write(java.lang.String format, java.lang.Object... args)
FormattingWriter
writeln()
FormattingWriter
writeln(byte[] bytes)
FormattingWriter
writeln(java.lang.Number number)
FormattingWriter
writeln(java.lang.String string)
FormattingWriter
writeln(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:
flush
in interfacejava.io.Flushable
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
tell
public long tell()
-
-