org.eclipse.emf.emfstore.internal.server.filetransfer
Class FileChunk
java.lang.Object
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
FileChunk
public FileChunk(FileTransferInformation fileInformation,
boolean end,
byte[] data)
- Default constructor.
- Parameters:
fileInformation
- file informationend
- flag reserved for last chunkdata
- the actual data
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.