Prism.extensions.port.compression
Class Compression

java.lang.Object
  extended by Prism.extensions.port.compression.AbstractCompression
      extended by Prism.extensions.port.compression.Compression

public class Compression
extends AbstractCompression

This class provide a utility for compression of outgoing event and decompression of incoming event.

Version:
2.0
Author:
USC Soft. Arch. Group. Contact: Sam Malek malek@usc.edu

Constructor Summary
Compression()
          An empty constructor.
 
Method Summary
 java.lang.Object processEvent(java.lang.Object eventObj, java.lang.String direction)
          This method is called to compress or decomperss an event depending on the direction of the event.
 void start()
          This method is called from the ExtensiblePort.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compression

public Compression()
An empty constructor.

Method Detail

start

public void start()
This method is called from the ExtensiblePort. In this implementation, this method doesn't do anything.

Specified by:
start in class AbstractCompression

processEvent

public java.lang.Object processEvent(java.lang.Object eventObj,
                                     java.lang.String direction)
This method is called to compress or decomperss an event depending on the direction of the event.

Specified by:
processEvent in class AbstractCompression
Parameters:
eventObj - event to be processed
direction - "IN" for decompression, "OUT" for compression