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, skip
public EntitySanitizingInputStream(InputStream xmlStream)
xmlStream
- The original xml input streampublic int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
Copyright © 2011–2014. All rights reserved.