Sautrela

edu.gtts.sautrela.text
Class StringCutter

java.lang.Object
  extended by edu.gtts.sautrela.engine.AbstractDataProcessor
      extended by edu.gtts.sautrela.text.StringCutter
All Implemented Interfaces:
DataProcessor, java.beans.BeanInfo, java.io.Serializable

public class StringCutter
extends AbstractDataProcessor

A simple module that removes sections from each received String data.

Author:
mpenagar
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
Constructor Summary
StringCutter()
           
 
Method Summary
 void editBeanInfo(java.beans.BeanInfo info)
           
 java.lang.String getDelimiter()
          Getter for property delimiter.
 java.lang.String getFields()
          Getter for property fields.
static void main(java.lang.String[] args)
           
 void process(Buffer in, Buffer out)
          Data is pulled from imput buffer, processed and pushed into the output buffer.
 void setDelimiter(java.lang.String delimiter)
          Setter for property delimiter.
 void setFields(java.lang.String fields)
          Setter for property fields.
 
Methods inherited from class edu.gtts.sautrela.engine.AbstractDataProcessor
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringCutter

public StringCutter()
Method Detail

getDelimiter

public java.lang.String getDelimiter()
Getter for property delimiter.

Returns:
Value of property delimiter.

setDelimiter

public void setDelimiter(java.lang.String delimiter)
Setter for property delimiter.

Parameters:
delimiter - New value of property delimiter.

getFields

public java.lang.String getFields()
Getter for property fields.

Returns:
Value of property fields.

setFields

public void setFields(java.lang.String fields)
Setter for property fields.

Parameters:
fields - New value of property fields.

process

public void process(Buffer in,
                    Buffer out)
             throws DataProcessorException
Description copied from interface: DataProcessor
Data is pulled from imput buffer, processed and pushed into the output buffer. Processing mus finish as sooan as a CloseData is received.

Parameters:
in - Input Buffer
out - Output Buffer
Throws:
DataProcessorException

editBeanInfo

public void editBeanInfo(java.beans.BeanInfo info)
Overrides:
editBeanInfo in class AbstractDataProcessor

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

Sautrela