ostore.client
Class OSActionTruncate

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

public class OSActionTruncate
extends OSAction

The OSActionTruncate truncates a data object to zero length.

Version:
$Id: OSActionTruncate.java,v 1.12 2002/07/20 19:38:01 srhea Exp $
Author:
Patrick R. Eaton

Field Summary
static boolean DEBUG
           
 
Constructor Summary
OSActionTruncate(InputBuffer buffer)
           
OSActionTruncate(SecureHash aguid)
          Creates a new OSActionTruncate.
 
Method Summary
 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

OSActionTruncate

public OSActionTruncate(SecureHash aguid)
Creates a new OSActionTruncate.

Parameters:
aguid - the Aguid of the data object to modify

OSActionTruncate

public OSActionTruncate(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

toString

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