public class EntitySanitizingInputStream extends InputStream
This input stream does not try to understand encoding and process only ASCII values. As a result, it should work with UTF-8 and ASCII streams bu will not work with UTF-16 streams.
| Constructor and Description |
|---|
EntitySanitizingInputStream(InputStream xmlStream)
Wrap an input stream with XMLentity sanitizing.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
void |
reset() |
mark, markSupported, read, read, skippublic EntitySanitizingInputStream(InputStream xmlStream)
xmlStream - The original xml input streampublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionCopyright © 2011–2014. All rights reserved.