Code example for ObjectOutput

Methods: writeByte, writeInt, writeLong

0
         return "n/a"; 
      } 
 
      @Override 
      public void writeExternal(ObjectOutput out) throws IOException {
         out.writeInt(length);
         out.writeLong(modification_time);
         out.writeInt(chunk_size);
         out.writeByte(flags);
      } 
 
      @Override 
      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
         length = in.readInt();
         modification_time = in.readLong();
         chunk_size = in.readInt();
         flags = in.readByte();
      } 
   } 
}