@NotThreadSafe public class XmlInputStream extends FilterInputStream
This is a slightly modified (class/method rename) from an SO answer: https://stackoverflow.com/questions/7286428/help-the-java-sax-parser-to-understand-bad-xml
in| Constructor and Description |
|---|
XmlInputStream(InputStream in)
Constructs a new XML Input Stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
length()
NB: This is a Troll length (i.e.
|
int |
read()
Reads the next byte.
|
int |
read(@NotNull byte[] data,
int offset,
int length)
Reads the next length of bytes from the stream into the given byte array
at the given offset.
|
String |
toString()
To string implementation.
|
available, close, mark, markSupported, read, reset, skippublic XmlInputStream(InputStream in)
in - the base input streampublic int length()
public int read()
throws IOException
read in class FilterInputStreamIOException - thrown when there is an problem readingpublic int read(@NotNull
@NotNull byte[] data,
int offset,
int length)
throws IOException
read in class FilterInputStreamdata - the buffer to store the data readoffset - the offset in the buffer to start writinglength - the length of data to readIOException - thrown when there is an issue with the underlying
streamCopyright © 2012–2020 OWASP. All rights reserved.