org.erowid.sperowider.htmlshredding
Class Tools

java.lang.Object
  extended byorg.erowid.sperowider.htmlshredding.Tools

public class Tools
extends Object

Utilties for Shredding

Version:
: $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/htmlshredding/Tools.java,v 1.3 2005/01/15 23:26:17 gurustu Exp $
Author:
: $Author: gurustu $

Constructor Summary
Tools()
           
 
Method Summary
static boolean scrollReaderToPattern(BufferedReader reader, Writer w, String pattern)
          Scrolls through the reader, writing to the writer, until it finds the pattern, then it returns true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

scrollReaderToPattern

public static boolean scrollReaderToPattern(BufferedReader reader,
                                            Writer w,
                                            String pattern)
                                     throws IOException
Scrolls through the reader, writing to the writer, until it finds the pattern, then it returns true. Returns false when it gets to the end of the reader without a pattern hit.

Throws:
IOException

spero logo small Sperowider is
© 2005 Erowid.org