org.apache.solr.analysis
Class HTMLStripReader

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

public class HTMLStripReader
extends java.io.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(java.io.Reader source)
           
 
Method Summary
 void close()
           
static void main(java.lang.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(java.io.Reader source)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

read

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

read

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

close

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


Copyright © 2006 - 2008 The Apache Software Foundation