public class ProxyWriter
extends java.io.FilterWriter
| Constructor and Description |
|---|
ProxyWriter(java.io.Writer proxy)
Constructs a new ProxyWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Invokes the delegate's
close() method. |
void |
flush()
Invokes the delegate's
flush() method. |
void |
write(char[] chr)
Invokes the delegate's
write(char[]) method. |
void |
write(char[] chr,
int st,
int end)
Invokes the delegate's
write(char[], int, int) method. |
void |
write(int idx)
Invokes the delegate's
write(int) method. |
void |
write(java.lang.String str)
Invokes the delegate's
write(String) method. |
void |
write(java.lang.String str,
int st,
int end)
Invokes the delegate's
write(String) method. |
public ProxyWriter(java.io.Writer proxy)
proxy - the Writer to delegate topublic void write(int idx)
throws java.io.IOException
write(int) method.write in class java.io.FilterWriteridx - the character to writejava.io.IOException - if an I/O error occurspublic void write(char[] chr)
throws java.io.IOException
write(char[]) method.write in class java.io.Writerchr - the characters to writejava.io.IOException - if an I/O error occurspublic void write(char[] chr,
int st,
int end)
throws java.io.IOException
write(char[], int, int) method.write in class java.io.FilterWriterchr - the characters to writest - The start offsetend - The number of characters to writejava.io.IOException - if an I/O error occurspublic void write(java.lang.String str)
throws java.io.IOException
write(String) method.write in class java.io.Writerstr - the string to writejava.io.IOException - if an I/O error occurspublic void write(java.lang.String str,
int st,
int end)
throws java.io.IOException
write(String) method.write in class java.io.FilterWriterstr - the string to writest - The start offsetend - The number of characters to writejava.io.IOException - if an I/O error occurspublic void flush()
throws java.io.IOException
flush() method.flush in interface java.io.Flushableflush in class java.io.FilterWriterjava.io.IOException - if an I/O error occurspublic void close()
throws java.io.IOException
close() method.close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterWriterjava.io.IOException - if an I/O error occursCopyright (c) 2002-2014 Apache Software Foundation