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 472574 2006-11-08 18:25:52Z yonik $
Author:
yonik

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
HTMLStripReader(Reader source)
           
 
Method Summary
 void close()
           
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
 

Constructor Detail

HTMLStripReader

public HTMLStripReader(Reader source)
Method Detail

main

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

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 © 2006 - 2009 The Apache Software Foundation