cc.mallet.pipe
Class Input2CharSequence

java.lang.Object
  extended by cc.mallet.pipe.Pipe
      extended by cc.mallet.pipe.Input2CharSequence
All Implemented Interfaces:
AlphabetCarrying, java.io.Serializable

public class Input2CharSequence
extends Pipe
implements java.io.Serializable

Pipe that can read from various kinds of text sources (either URI, File, or Reader) into a CharSequence

Version:
$Id: Input2CharSequence.java,v 1.1 2007/10/22 21:37:39 mccallum Exp $
See Also:
Serialized Form

Constructor Summary
Input2CharSequence()
           
Input2CharSequence(java.lang.String encoding)
           
 
Method Summary
 java.lang.CharSequence pipe(java.lang.CharSequence cs)
           
 java.lang.CharSequence pipe(java.io.File file)
           
 Instance pipe(Instance carrier)
          Really this should be 'protected', but isn't for historical reasons.
 java.lang.CharSequence pipe(java.io.Reader reader)
           
 java.lang.CharSequence pipe(java.net.URI uri)
           
 
Methods inherited from class cc.mallet.pipe.Pipe
alphabetsMatch, getAlphabet, getAlphabets, getDataAlphabet, getInstanceId, getTargetAlphabet, instanceFrom, instancesFrom, instancesFrom, isDataAlphabetSet, isTargetProcessing, newIteratorFrom, preceedingPipeDataAlphabetNotification, preceedingPipeTargetAlphabetNotification, precondition, readResolve, setDataAlphabet, setOrCheckDataAlphabet, setOrCheckTargetAlphabet, setTargetAlphabet, setTargetProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Input2CharSequence

public Input2CharSequence()

Input2CharSequence

public Input2CharSequence(java.lang.String encoding)
Method Detail

pipe

public Instance pipe(Instance carrier)
Description copied from class: Pipe
Really this should be 'protected', but isn't for historical reasons.

Overrides:
pipe in class Pipe

pipe

public java.lang.CharSequence pipe(java.net.URI uri)
                            throws java.io.FileNotFoundException,
                                   java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

pipe

public java.lang.CharSequence pipe(java.io.File file)
                            throws java.io.FileNotFoundException,
                                   java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

pipe

public java.lang.CharSequence pipe(java.io.Reader reader)
                            throws java.io.IOException
Throws:
java.io.IOException

pipe

public java.lang.CharSequence pipe(java.lang.CharSequence cs)