|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gtts.sautrela.engine.AbstractDataProcessor
edu.gtts.sautrela.engine.util.StreamCutter
public class StreamCutter
A simple processor that splits input data streams in fixed size streams. The length is computed as number of Data elements (DataStream begin and end are not computed), so vector Data such as IntData, ShortData and DoubleData are computed as single elements, regardless of the size of the vector they contain.
| Field Summary |
|---|
| Fields inherited from interface java.beans.BeanInfo |
|---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Constructor Summary | |
|---|---|
StreamCutter()
Creates a new instance of StreamCutter |
|
| Method Summary | |
|---|---|
void |
editBeanInfo(java.beans.BeanInfo info)
|
boolean |
getDiscardTail()
Getter for property discardTail. |
int |
getLength()
Getter for property length. |
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 |
setDiscardTail(boolean skipTail)
Setter for property discardTail. |
void |
setLength(int length)
Setter for property length. |
| 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 |
|---|
public StreamCutter()
| Method Detail |
|---|
public void process(Buffer in,
Buffer out)
throws DataProcessorException
DataProcessor
in - Input Bufferout - Output Buffer
DataProcessorExceptionpublic int getLength()
public void setLength(int length)
length - New value of property length.public boolean getDiscardTail()
public void setDiscardTail(boolean skipTail)
length - New value of property discardTail. If set to true, last
(remainder) elements are discarted.public void editBeanInfo(java.beans.BeanInfo info)
editBeanInfo in class AbstractDataProcessor
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||