FileNodeDataContainer
127128129130131132133
for (FileNodeChunk chunk : FileNodeDataContainer.getChunks(file, chunkSize)) { client.send(chunk); } // mark end of file with special chunk client.send(new FileNodeEndChunk(container.getSourceNodeId(), container.getFileSize())); }