|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.server.filetransfer.FilePartitionerUtil
public final class FilePartitionerUtil
File transfer utility class.
| Method Summary | |
|---|---|
static int |
getChunkSize()
|
static int |
getFileSize(File file)
|
static int |
getNumberOfChunks(File file)
Returns the number of chunks for a given file. |
static FileChunk |
readChunk(File file,
FileTransferInformation fileInformation)
Reads a file chunk from a file. |
static void |
writeChunk(File file,
FileChunk fileChunk)
Writes a file chunk to a file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void writeChunk(File file,
FileChunk fileChunk)
throws FileTransferException
file - file to be written tofileChunk - file chunk
FileTransferException - if any error occurs writing to the file.
public static FileChunk readChunk(File file,
FileTransferInformation fileInformation)
throws FileTransferException
file - to be read fromfileInformation - containing file transfer attributes
FileTransferException - if any error occurs reading the file
public static int getNumberOfChunks(File file)
throws FileTransferException
file - file
FileTransferException - if any error occurs obtaining the file handle.
public static int getFileSize(File file)
throws FileTransferException
file - file
FileTransferException - if any error occurs reading file sizepublic static int getChunkSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||