public class ProxyWriter extends FilterWriter
write(char[]) to write(char[], int, int)
and write(String) to write(String, int, int)
.Constructor and Description |
---|
ProxyWriter(Writer proxy)
Constructs a new ProxyWriter.
|
Modifier and Type | Method and Description |
---|---|
Writer |
append(char c)
Invokes the delegate's
append(char) method. |
Writer |
append(CharSequence csq)
Invokes the delegate's
append(CharSequence) method. |
Writer |
append(CharSequence csq,
int start,
int end)
Invokes the delegate's
append(CharSequence, int, int) method. |
void |
close()
Invokes the delegate's
close() method. |
void |
flush()
Invokes the delegate's
flush() method. |
void |
write(char[] cbuf)
Invokes the delegate's
write(char[]) method. |
void |
write(char[] cbuf,
int off,
int len)
Invokes the delegate's
write(char[], int, int) method. |
void |
write(int c)
Invokes the delegate's
write(int) method. |
void |
write(String str)
Invokes the delegate's
write(String) method. |
void |
write(String str,
int off,
int len)
Invokes the delegate's
write(String) method. |
public ProxyWriter(Writer proxy)
proxy
- the Writer to delegate topublic Writer append(char c) throws IOException
append(char)
method.append
in interface Appendable
append
in class Writer
c
- The character to writeIOException
- if an I/O error occurspublic Writer append(CharSequence csq, int start, int end) throws IOException
append(CharSequence, int, int)
method.append
in interface Appendable
append
in class Writer
csq
- The character sequence to writestart
- The index of the first character to writeend
- The index of the first character to write (exclusive)IOException
- if an I/O error occurspublic Writer append(CharSequence csq) throws IOException
append(CharSequence)
method.append
in interface Appendable
append
in class Writer
csq
- The character sequence to writeIOException
- if an I/O error occurspublic void write(int c) throws IOException
write(int)
method.write
in class FilterWriter
c
- the character to writeIOException
- if an I/O error occurspublic void write(char[] cbuf) throws IOException
write(char[])
method.write
in class Writer
cbuf
- the characters to writeIOException
- if an I/O error occurspublic void write(char[] cbuf, int off, int len) throws IOException
write(char[], int, int)
method.write
in class FilterWriter
cbuf
- the characters to writeoff
- The start offsetlen
- The number of characters to writeIOException
- if an I/O error occurspublic void write(String str) throws IOException
write(String)
method.write
in class Writer
str
- the string to writeIOException
- if an I/O error occurspublic void write(String str, int off, int len) throws IOException
write(String)
method.write
in class FilterWriter
str
- the string to writeoff
- The start offsetlen
- The number of characters to writeIOException
- if an I/O error occurspublic void flush() throws IOException
flush()
method.flush
in interface Flushable
flush
in class FilterWriter
IOException
- if an I/O error occurspublic void close() throws IOException
close()
method.close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterWriter
IOException
- if an I/O error occursJas4pp 1.5 © Java Analysis Studio for Particle Physics