org.eclipse.emf.emfstore.internal.server.filetransfer
Class FileChunk

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.filetransfer.FileChunk
All Implemented Interfaces:
Serializable

public class FileChunk
extends Object
implements Serializable

Author:
pfeifferc
See Also:
Serialized Form

Constructor Summary
FileChunk(FileTransferInformation fileInformation, boolean end, byte[] data)
          Default constructor.
 
Method Summary
 int getChunkNumber()
           
 byte[] getData()
           
 FileIdentifier getFileIdentifier()
           
 FileTransferInformation getFileInformation()
           
 int getFileSize()
           
 boolean isLast()
           
 void setFileInformation(FileTransferInformation fileInformation)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChunk

public FileChunk(FileTransferInformation fileInformation,
                 boolean end,
                 byte[] data)
Default constructor.

Parameters:
fileInformation - file information
end - flag reserved for last chunk
data - the actual data
Method Detail

getData

public byte[] getData()
Returns:
data

getChunkNumber

public int getChunkNumber()
Returns:
chunk number

isLast

public boolean isLast()
Returns:
true if last chunk

getFileIdentifier

public FileIdentifier getFileIdentifier()
Returns:
file identifier

getFileInformation

public FileTransferInformation getFileInformation()
Returns:
the file information

setFileInformation

public void setFileInformation(FileTransferInformation fileInformation)
Parameters:
fileInformation - file information

getFileSize

public int getFileSize()
Returns:
file size


Copyright © 2015. All Rights Reserved.