- All Implemented Interfaces:
- java.io.Closeable, java.lang.AutoCloseable
public class EvilUnclosedBRFixingInputStream
extends java.io.InputStream
This is a seriously sick fix for the fact that some .xlsx
files contain raw bits of HTML, without being escaped
or properly turned into XML.
The result is that they contain things like >br<,
which breaks the XML parsing.
This very sick InputStream wrapper attempts to spot
these go past, and fix them.
Only works for UTF-8 and US-ASCII based streams!
It should only be used where experience shows the problem
can occur...