dist1.acb.ACBpoint.transport
Class ResponseFileSegment
java.lang.Object
dist1.acb.common.transport.Packet
dist1.acb.common.transport.Response
dist1.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
Method Summary |
byte[] |
getSegment()
Getter for property segment. |
void |
setSegment(byte[] segment)
Setter for property segment. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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.