Package cc.mallet.pipe
Class Input2CharSequence
- java.lang.Object
-
- cc.mallet.pipe.Pipe
-
- 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
Constructors Constructor Description Input2CharSequence()
Input2CharSequence(java.lang.String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instance
pipe(Instance carrier)
Really this should be 'protected', but isn't for historical reasons.java.lang.CharSequence
pipe(java.io.File file)
java.lang.CharSequence
pipe(java.io.Reader reader)
java.lang.CharSequence
pipe(java.lang.CharSequence cs)
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
-
-
-
-
Method Detail
-
pipe
public Instance pipe(Instance carrier)
Description copied from class:Pipe
Really this should be 'protected', but isn't for historical reasons.
-
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)
-
-