org.cdlib.xtf.textIndexer
Class CrimsonBugWorkaround

Object
  extended by InputStream
      extended by SequenceInputStream
          extended by CrimsonBugWorkaround
All Implemented Interfaces:
Closeable

public class CrimsonBugWorkaround
extends SequenceInputStream

There's a very nasty bug in the Apache Crimson XML parser. If a ']' character appears at the very end of its 8193-byte buffer and is preceded by a '>' then it crashes. This stream works around it by inserting spaces just before ']' if preceded by a '>'.


Nested Class Summary
private static class CrimsonBugWorkaround.BlockEnum
          Presents the input stream as a series of blocks of data
 
Field Summary
(package private)  InputStream in
           
 
Constructor Summary
CrimsonBugWorkaround(InputStream in)
          Construct a stream that filters the given one
 
Method Summary
 
Methods inherited from class SequenceInputStream
available, close, read, read
 
Methods inherited from class InputStream
mark, markSupported, read, reset, skip
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

InputStream in
Constructor Detail

CrimsonBugWorkaround

public CrimsonBugWorkaround(InputStream in)
Construct a stream that filters the given one