Class CrankyTokenFilter

All Implemented Interfaces:
Closeable, AutoCloseable, Unwrappable<TokenStream>

public final class CrankyTokenFilter extends TokenFilter
Throws IOException from random Tokenstream methods.

This can be used to simulate a buggy analyzer in IndexWriter, where we must delete the document but not abort everything in the buffer.