org.apache.solr.analysis
Class HTMLStripReader

java.lang.Object
  extended by java.io.Reader
      extended by org.apache.solr.analysis.HTMLStripReader
All Implemented Interfaces:
Closeable, Readable

public class HTMLStripReader
extends Reader

A Reader that wraps another reader and attempts to strip out HTML constructs.

Version:
$Id: HTMLStripReader.java 646799 2008-04-10 13:36:23Z yonik $

Field Summary
static int DEFAULT_READ_AHEAD
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
HTMLStripReader(Reader source)
           
HTMLStripReader(Reader source, Set<String> escapedTags)
           
HTMLStripReader(Reader source, Set<String> escapedTags, int readAheadLimit)
           
 
Method Summary
 void close()
           
 int getReadAheadLimit()
           
static void main(String[] args)
           
 int read()
           
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_READ_AHEAD

public static final int DEFAULT_READ_AHEAD
See Also:
Constant Field Values
Constructor Detail

HTMLStripReader

public HTMLStripReader(Reader source)

HTMLStripReader

public HTMLStripReader(Reader source,
                       Set<String> escapedTags)

HTMLStripReader

public HTMLStripReader(Reader source,
                       Set<String> escapedTags,
                       int readAheadLimit)
Method Detail

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException

getReadAheadLimit

public int getReadAheadLimit()

read

public int read()
         throws IOException
Overrides:
read in class Reader
Throws:
IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Specified by:
read in class Reader
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Reader
Throws:
IOException


Copyright © 2008 Apache Software Foundation. All Rights Reserved.