public byte[] getData(){
		if(blocks == null)
			return null;
		ByteBuffer ret = ByteBuffer.allocate(pieceSize);
		for(Block b : blocks){
			if(b == null){
				return null;
			}
			ret.put(b.getData());
		}
		return null;
	}