@@ -0,0 +1,790 @@
+package br.ufrj.cos.redes.fileAccess;%0A%0Apublic class Chunk implements Comparable%3CChunk%3E%7B%0A%09private long seqNum;%0A%09private byte%5B%5D bytes;%0A%09private int actualChunkLength;%0A%09%0A%09public Chunk(int chunkLength) %7B%0A%09%09bytes = new byte%5BchunkLength%5D;%0A%09%7D%0A%09%0A%09public long getSeqNum() %7B%0A%09%09return seqNum;%0A%09%7D%0A%09public void setSeqNum(long seqNum) %7B%0A%09%09this.seqNum = seqNum;%0A%09%7D%0A%09public byte%5B%5D getBytes() %7B%0A%09%09return bytes;%0A%09%7D%0A%0A%09public int getActualChunkLength() %7B%0A%09%09return actualChunkLength;%0A%09%7D%0A%0A%09public void setActualChunkLength(int actualChunkLength) %7B%0A%09%09this.actualChunkLength = actualChunkLength;%0A%09%7D%0A%0A%09@Override%0A%09public int compareTo(Chunk otherChunk) %7B%0A%09%09if (this.seqNum %3C otherChunk.getSeqNum()) %7B%0A%09%09%09return -1;%0A%09%09%7D else if (this.seqNum %3E otherChunk.getSeqNum()) %7B%0A%09%09%09return 1;%0A%09%09%7D else %7B%0A%09%09%09return 0;%0A%09%09%7D%0A%09%7D%0A%09%0A%7D%0A

add Chunk class