org.apache.commons.functor.example.lines
Class Lines

java.lang.Object
  extended by org.apache.commons.functor.generator.BaseGenerator<String>
      extended by org.apache.commons.functor.example.lines.Lines
All Implemented Interfaces:
Generator<String>

public class Lines
extends BaseGenerator<String>

Version:
$Revision: 665786 $ $Date: 2008-06-09 19:17:39 +0200 (Mon, 09 Jun 2008) $
Author:
Rodney Waldhoff

Constructor Summary
Lines(Reader reader)
           
 
Method Summary
static Lines from(File file)
           
static Lines from(Reader reader)
           
 void run(UnaryProcedure<? super String> proc)
           
 void stop()
           
 
Methods inherited from class org.apache.commons.functor.generator.BaseGenerator
getWrappedGenerator, isStopped, to, to, toCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lines

public Lines(Reader reader)
Method Detail

from

public static Lines from(Reader reader)

from

public static Lines from(File file)
                  throws FileNotFoundException
Throws:
FileNotFoundException

run

public void run(UnaryProcedure<? super String> proc)

stop

public void stop()
Specified by:
stop in interface Generator<String>
Overrides:
stop in class BaseGenerator<String>


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.