net.sf.pipet.api
Class InputOutputModule
java.lang.Object
net.sf.pipet.api.AbstractModule
net.sf.pipet.api.VersionedModule
net.sf.pipet.api.DefaultModuleInterface
net.sf.pipet.api.SimpleInputOutputModule
net.sf.pipet.api.InputOutputModule
- All Implemented Interfaces:
- ModuleInterface
public abstract class InputOutputModule
- extends SimpleInputOutputModule
Abstract base class for a PipeT module.
Subclasses must provide a title and a description via the constructor, and implement run(java.io.InputStream[], java.io.OutputStream, net.sf.pipet.api.ModuleAttributes, net.sf.qxs.messenger.Messenger)
.
- Since:
- 1.2.8
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputOutputModule
public InputOutputModule(String title,
String description)
InputOutputModule
public InputOutputModule(String title,
String description,
String input_type,
String output_type)
run
public boolean run(InputStream[] iss,
OutputStream os,
ModuleAttributes atts,
net.sf.qxs.messenger.Messenger messenger)
- Description copied from class:
SimpleInputOutputModule
- Runs the module in a pipeline.
- Specified by:
run
in class SimpleInputOutputModule
- Parameters:
iss
- the module's input.os
- the module's output.atts
- parameters for the module.messenger
- a Messenger object for sending messages back to the user.
- Returns:
- true if the module completed successfully; false otherwise.
run
public abstract boolean run(InputStream is,
OutputStream os,
ModuleAttributes atts,
net.sf.qxs.messenger.Messenger messenger)
Copyright © 2012 VU University Amsterdam. All Rights Reserved.