wtanaka.praya.gale
Class GimmeOperation

java.lang.Object
  |
  +--wtanaka.praya.gale.GimmeOperation
All Implemented Interfaces:
OperationInterface

public class GimmeOperation
extends java.lang.Object
implements OperationInterface

GIMME, from Gale Protocol Version 0.

 Opcode 0x00000002: gimme (subscribe to puffs)
 +--+--+--+--+--+--+--+--+-||-+
 | category expression ... || |
 +--+--+--+--+--+--+--+--+-||-+
 

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2001/09/30 21:14:52 $
Author:
$Author: wtanaka $

Field Summary
private  java.lang.String m_categoryExpression
           
 
Fields inherited from interface wtanaka.praya.gale.OperationInterface
GIMME, PUFF, WILL
 
Constructor Summary
GimmeOperation(java.lang.String categoryExpression)
          Deprecated. use SubscriptionList constructor instead
GimmeOperation(SubscriptionList subscriptions)
          Constructor takes a SubscriptionList
 
Method Summary
 int getOpcode()
           
 int getStreamLength()
           
 void write(GaleOutputStream out)
          Writes this GimmeOperation to the given output stream, locking it with synchronized (out)
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

m_categoryExpression

private java.lang.String m_categoryExpression
Constructor Detail

GimmeOperation

public GimmeOperation(SubscriptionList subscriptions)
Constructor takes a SubscriptionList
Parameters:
subscriptions - the SubscriptionList to use

GimmeOperation

public GimmeOperation(java.lang.String categoryExpression)
Deprecated. use SubscriptionList constructor instead

Constructor takes a colon separated String
Parameters:
categoryExpression - the string to use.
Method Detail

getOpcode

public int getOpcode()
Specified by:
getOpcode in interface OperationInterface

getStreamLength

public int getStreamLength()
Specified by:
getStreamLength in interface OperationInterface
Following copied from interface: wtanaka.praya.gale.OperationInterface
Returns:
the total length of the wire representation of this operation, including opcode.

write

public void write(GaleOutputStream out)
           throws java.io.IOException
Writes this GimmeOperation to the given output stream, locking it with synchronized (out)
Specified by:
write in interface OperationInterface
Parameters:
out - the stream on which to write the GimmeOperation