|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.Writer
|
+--com.devsphere.xml.taglib.output.write.Filter
This class filters the output and removes the empty comments.
| Field Summary | |
protected boolean |
emptyComment
|
protected boolean |
inComment
|
protected java.io.Writer |
out
|
| Fields inherited from class java.io.Writer |
lock |
| Constructor Summary | |
Filter()
Initializes the filter. |
|
| Method Summary | |
void |
close()
Closes the current writer. |
void |
flush()
Flushes the current writer. |
java.io.Writer |
getOut()
Gets the current writer used for output. |
void |
setOut(java.io.Writer out)
Sets the current writer used for output. |
void |
write(char[] cbuf)
Writes an array of characters. |
void |
write(char[] cbuf,
int off,
int len)
Writes an array of characters. |
void |
write(int c)
Writes a character. |
void |
write(java.lang.String str)
Writes a string. |
void |
write(java.lang.String str,
int off,
int len)
Writes a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.Writer out
protected boolean inComment
protected boolean emptyComment
| Constructor Detail |
public Filter()
| Method Detail |
public java.io.Writer getOut()
public void setOut(java.io.Writer out)
out - the current writer used for output
public void write(int c)
throws java.io.IOException
write in class java.io.Writerc - the character to be written
java.io.IOException - to signal any error that might occur
public void write(char[] cbuf)
throws java.io.IOException
write in class java.io.Writercbuf - the characters to be written
java.io.IOException - to signal any error that might occur
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
write in class java.io.Writercbuf - the characters to be writtenoff - the start position in the arraylen - the number of characters to get from the array
java.io.IOException - to signal any error that might occur
public void write(java.lang.String str)
throws java.io.IOException
write in class java.io.Writerstr - the string to be written
java.io.IOException - to signal any error that might occur
public void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
write in class java.io.Writerstr - the string to be writtenoff - the start position in the stringlen - the number of characters to get from the string
java.io.IOException - to signal any error that might occur
public void flush()
throws java.io.IOException
flush in class java.io.Writerjava.io.IOException - to signal any error that might occur
public void close()
throws java.io.IOException
close in class java.io.Writerjava.io.IOException - to signal any error that might occur
|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||