public class ThrowingPrintWriter extends Writer
Constructor and Description |
---|
ThrowingPrintWriter(Writer out)
Construct a JGitPrintWriter
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
format(String fmt,
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(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(String s)
Print a string and terminate with a line feed.
|
void |
write(char[] cbuf,
int off,
int len) |
public void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void println(String s) throws IOException
s
- a String
object.IOException
public void println() throws IOException
IOException
public void print(char value) throws IOException
value
- a char.IOException
public void print(int value) throws IOException
value
- an int.IOException
public void print(long value) throws IOException
value
- a long.IOException
public void print(short value) throws IOException
value
- a short.IOException
public void format(String fmt, Object... args) throws IOException
String.format(String, Object...)
.fmt
- a String
object.args
- objects.IOException
public void print(Object any) throws IOException
any
- an object.IOException
Copyright © 2019 Eclipse JGit Project. All rights reserved.