org.apache.solr.analysis
Class HTMLStripReader
java.lang.Object
java.io.Reader
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_READ_AHEAD
public static final int DEFAULT_READ_AHEAD
- See Also:
- Constant Field Values
HTMLStripReader
public HTMLStripReader(Reader source)
HTMLStripReader
public HTMLStripReader(Reader source,
Set<String> escapedTags)
HTMLStripReader
public HTMLStripReader(Reader source,
Set<String> escapedTags,
int readAheadLimit)
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.