public class ThrowingPrintWriter
extends java.io.Writer
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
LF |
private java.io.Writer |
out |
Constructor and Description |
---|
ThrowingPrintWriter(java.io.Writer out)
Construct a JGitPrintWriter
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
format(java.lang.String fmt,
java.lang.Object... args)
Print a formatted message according to
String.format(String, Object...) . |
void |
print(char value)
Print a char
|
void |
print(int value)
Print an int as string
|
void |
print(long value)
Print a long as string
|
void |
print(java.lang.Object any)
Print an object's toString representations
|
void |
print(short value)
Print a short as string
|
void |
println()
Print a platform dependent new line
|
void |
println(java.lang.String s)
Print a string and terminate with a line feed.
|
void |
write(char[] cbuf,
int off,
int len) |
public ThrowingPrintWriter(java.io.Writer out)
out
- the underlying Writer
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
java.io.IOException
public void println(java.lang.String s) throws java.io.IOException
s
- a String
object.java.io.IOException
public void println() throws java.io.IOException
java.io.IOException
public void print(char value) throws java.io.IOException
value
- a char.java.io.IOException
public void print(int value) throws java.io.IOException
value
- an int.java.io.IOException
public void print(long value) throws java.io.IOException
value
- a long.java.io.IOException
public void print(short value) throws java.io.IOException
value
- a short.java.io.IOException
public void format(java.lang.String fmt, java.lang.Object... args) throws java.io.IOException
String.format(String, Object...)
.fmt
- a String
object.args
- objects.java.io.IOException
public void print(java.lang.Object any) throws java.io.IOException
any
- an object.java.io.IOException