@Override public void storeTo(DataOutputStream dos) throws IOException { dos.writeInt(MAGIC); underlying.storeTo(dos); }
@Override public void storeTo(DataOutputStream dos) throws IOException { dos.writeInt(MAGIC); underlying.storeTo(dos); }
@Override public void storeTo(DataOutputStream dos) throws IOException { dos.writeInt(MAGIC); underlying.storeTo(dos); }
@Override public void storeTo(DataOutputStream dos) throws IOException { dos.writeInt(MAGIC); dos.writeLong(realSize); raf.storeTo(dos); }
@Override public void storeTo(DataOutputStream dos) throws IOException { dos.writeInt(MAGIC); dos.writeInt(type.bitmask); underlyingBuffer.storeTo(dos); }
public boolean writeTrivialProgress(DataOutputStream dos) throws IOException { boolean done = false; synchronized(this) { done = failed || succeeded; } if(done) { dos.writeBoolean(false); return false; } dos.writeBoolean(true); if(callbackCompleteViaTruncation == null) { dos.writeBoolean(false); raf.storeTo(dos); } else { dos.writeBoolean(true); dos.writeUTF(fileCompleteViaTruncation.toString()); dos.writeLong(raf.size()); } dos.writeLong(token); return true; }
dos = new DataOutputStream(os); dos.writeInt(VERSION); originalData.storeTo(dos); dos.writeInt(totalDataBlocks); dos.writeInt(totalCheckBlocks);