|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
org.eclipse.jgit.util.io.ThrowingPrintWriter
public class ThrowingPrintWriter
An alternative PrintWriter that doesn't catch exceptions.
Field Summary |
---|
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
ThrowingPrintWriter(java.io.Writer out)
Construct a JGitPrintWriter |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThrowingPrintWriter(java.io.Writer out)
out
- the underlying Writer
Method Detail |
---|
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 class java.io.Writer
java.io.IOException
public void println(java.lang.String s) throws java.io.IOException
s
-
java.io.IOException
public void println() throws java.io.IOException
java.io.IOException
public void print(char value) throws java.io.IOException
value
-
java.io.IOException
public void print(int value) throws java.io.IOException
value
-
java.io.IOException
public void print(long value) throws java.io.IOException
value
-
java.io.IOException
public void print(short value) throws java.io.IOException
value
-
java.io.IOException
public void format(java.lang.String fmt, java.lang.Object... args) throws java.io.IOException
String.format(String, Object...)
.
fmt
- args
-
java.io.IOException
public void print(java.lang.Object any) throws java.io.IOException
any
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |