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 Writerappend(char c)Writerappend(CharSequence csq)Writerappend(CharSequence csq, int start, int end)StringBuffergetBuffer()booleanisModified()voidwrite(char... cbuf)voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str)voidwrite(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:
writein classFilterWriter- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException- Overrides:
writein classFilterWriter- Throws:
IOException
-
write
public void write(String str, int off, int len) throws IOException
- Overrides:
writein classFilterWriter- Throws:
IOException
-
write
public void write(String str) throws IOException
- Overrides:
writein classWriter- Throws:
IOException
-
write
public void write(char... cbuf) throws IOException- Overrides:
writein classWriter- Throws:
IOException
-
append
public Writer append(CharSequence csq) throws IOException
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Throws:
IOException
-
append
public Writer append(CharSequence csq, int start, int end) throws IOException
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Throws:
IOException
-
append
public Writer append(char c) throws IOException
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter- Throws:
IOException
-
-