org.apache.poi.xssf.util
Class EvilUnclosedBRFixingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.poi.util.ReplacingInputStream
              extended by org.apache.poi.xssf.util.EvilUnclosedBRFixingInputStream
All Implemented Interfaces:
java.io.Closeable

Deprecated. 3.16-beta2 - use ReplacingInputStream(source, ">br<", ">br/<")

@Deprecated
@Removal(version="3.18")
@Internal
public class EvilUnclosedBRFixingInputStream
extends ReplacingInputStream

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...


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
EvilUnclosedBRFixingInputStream(java.io.InputStream source)
          Deprecated.  
 
Method Summary
 
Methods inherited from class org.apache.poi.util.ReplacingInputStream
read, read, read, toString
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EvilUnclosedBRFixingInputStream

public EvilUnclosedBRFixingInputStream(java.io.InputStream source)
Deprecated. 


Copyright 2017 The Apache Software Foundation or its licensors, as applicable.