Package org.nuiton.eugene
Class MonitorWriter
- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- org.nuiton.eugene.MonitorWriter
-
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class MonitorWriter extends FilterWriter
Permet de savoir si on a ecrit dans le flux ou non. L'ecriture d'une chaine vide a le meme comportement que l'ecriture d'une vrai chaine. De cette façon meme les fichiers peuvent être créer. Created: Jun 8, 2004- Author:
- Benjamin Poussin - poussin@codelutin.com
-
-
Field Summary
-
Fields inherited from class java.io.FilterWriter
out
-
-
Constructor Summary
Constructors Constructor Description MonitorWriter(StringWriter out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Writer
append(char c)
Writer
append(CharSequence csq)
Writer
append(CharSequence csq, int start, int end)
StringBuffer
getBuffer()
boolean
isModified()
void
write(char... cbuf)
void
write(char[] cbuf, int off, int len)
void
write(int c)
void
write(String str)
void
write(String str, int off, int len)
-
Methods inherited from class java.io.FilterWriter
close, flush
-
Methods inherited from class java.io.Writer
nullWriter
-
-
-
-
Constructor Detail
-
MonitorWriter
public MonitorWriter(StringWriter out)
-
-
Method Detail
-
getBuffer
public StringBuffer getBuffer()
-
isModified
public boolean isModified()
-
write
public void write(int c) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
public void write(String str, int off, int len) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
public void write(String str) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
public void write(char... cbuf) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
append
public Writer append(CharSequence csq) throws IOException
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
append
public Writer append(CharSequence csq, int start, int end) throws IOException
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
append
public Writer append(char c) throws IOException
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
- Throws:
IOException
-
-