Package org.apache.myfaces.util
Class IllegalXmlCharacterFilterWriter
- java.lang.Object
- 
- java.io.Writer
- 
- java.io.FilterWriter
- 
- org.apache.myfaces.util.IllegalXmlCharacterFilterWriter
 
 
 
- 
- All Implemented Interfaces:
- Closeable,- Flushable,- Appendable,- AutoCloseable
 
 public class IllegalXmlCharacterFilterWriter extends FilterWriter There are unicodes outside the ranges defined in the XML 1.0 specification that break XML parsers and therefore must be filtered out when writing partial responses. Otherwise this may lead to Denial of Service attacks.
- 
- 
Field Summary- 
Fields inherited from class java.io.FilterWriterout
 
- 
 - 
Constructor SummaryConstructors Constructor Description IllegalXmlCharacterFilterWriter(Writer out)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str, int off, int len)- 
Methods inherited from class java.io.FilterWriterclose, flush
 
- 
 
- 
- 
- 
Constructor Detail- 
IllegalXmlCharacterFilterWriterpublic IllegalXmlCharacterFilterWriter(Writer out) 
 
- 
 - 
Method Detail- 
writepublic void write(int c) throws IOException- Overrides:
- writein class- FilterWriter
- Throws:
- IOException
 
 - 
writepublic void write(char[] cbuf, int off, int len) throws IOException- Overrides:
- writein class- FilterWriter
- Throws:
- IOException
 
 - 
writepublic void write(String str, int off, int len) throws IOException - Overrides:
- writein class- FilterWriter
- Throws:
- IOException
 
 
- 
 
-