ostore.client
Class OSActionAppend

java.lang.Object
  |
  +--ostore.client.OSAction
        |
        +--ostore.client.OSActionAppend
All Implemented Interfaces:
QuickSerializable

public class OSActionAppend
extends OSAction

The OSActionAppend appends data to a data object.

Version:
$Id: OSActionAppend.java,v 1.20 2002/07/25 15:46:02 eaton Exp $
Author:
Patrick R. Eaton

Field Summary
static boolean DEBUG
           
 
Constructor Summary
OSActionAppend(InputBuffer buffer)
           
OSActionAppend(SecureHash aguid, int length, byte[] data)
          Creates a new OSActionAppend.
 
Method Summary
 byte[] getData()
          Returns the data that this update appends.
 int getLength()
          Returns the number of bytes that this update appends.
 SecureHash getTargetAguid()
          Returns the Aguid of the object that this update modifies.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

OSActionAppend

public OSActionAppend(SecureHash aguid,
                      int length,
                      byte[] data)
Creates a new OSActionAppend.

Parameters:
aguid - the Aguid of the data object to modify
length - the number of bytes to append
data - the data to append. The data is assumed to start at offset zero.

OSActionAppend

public OSActionAppend(InputBuffer buffer)
               throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class OSAction
Parameters:
buffer - the output buffer to add the object to

getTargetAguid

public SecureHash getTargetAguid()
Returns the Aguid of the object that this update modifies.

Specified by:
getTargetAguid in class OSAction
Returns:
the Aguid of the object that this update modifies

getLength

public int getLength()
Returns the number of bytes that this update appends.

Returns:
the number of bytes that this update appends

getData

public byte[] getData()
Returns the data that this update appends.

Returns:
the number of bytes that this update appends

toString

public String toString()
Specified by:
toString in class OSAction