ostore.client
Class OSActionExpand

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

public class OSActionExpand
extends OSAction

The OSActionExpand action expands an object to a given length, zero-filling as necessary. If the object is already at least as long as the requested length, the object is unmodified.

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

Constructor Summary
OSActionExpand(InputBuffer buffer)
           
OSActionExpand(SecureHash aguid, long length)
          Creates a new OSActionExpand.
 
Method Summary
 long getLength()
          Returns the length to which the action will expand the data object.
 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
 

Constructor Detail

OSActionExpand

public OSActionExpand(SecureHash aguid,
                      long length)
Creates a new OSActionExpand.

Parameters:
aguid - the Aguid of the data object to modify
length - the length to which the action will expand the object

OSActionExpand

public OSActionExpand(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 long getLength()
Returns the length to which the action will expand the data object.

Returns:
the length to which the action will expand the data object

toString

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