dist1.acb.ACBpoint.transport
Class ResponseFileSegment

java.lang.Object
  extended bydist1.acb.common.transport.Packet
      extended bydist1.acb.common.transport.Response
          extended bydist1.acb.ACBpoint.transport.ResponseFileSegment
All Implemented Interfaces:
java.io.Serializable

public class ResponseFileSegment
extends Response

Response which contains part of a file and the ID of the part

Author:
Lazar Adzigogov
See Also:
Serialized Form

Constructor Summary
ResponseFileSegment(Request request, byte[] segment)
          Creates a new instance of ResponseFileSegment
 
Method Summary
 byte[] getSegment()
          Getter for property segment.
 void setSegment(byte[] segment)
          Setter for property segment.
 
Methods inherited from class dist1.acb.common.transport.Packet
equals, getId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResponseFileSegment

public ResponseFileSegment(Request request,
                           byte[] segment)
Creates a new instance of ResponseFileSegment

Parameters:
request - The response will be created for this request (it will inherit the id). If request is null the id will be zero.
segment - part of the file
Method Detail

setSegment

public void setSegment(byte[] segment)
Setter for property segment.

Parameters:
segment - New value of property segment.

getSegment

public byte[] getSegment()
Getter for property segment.

Returns:
Value of property segment.


Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.