public boolean writeHeader(OutputStream os){
  try {
    writeInt(os,CACHE_MAGIC);
    writeString(os,key);
    writeString(os,etag == null ? "" : etag);
    writeLong(os,serverDate);
    writeLong(os,ttl);
    writeLong(os,softTtl);
    writeStringStringMap(responseHeaders,os);
    writeLong(os,lastModified);
    os.flush();
    return true;
  }
 catch (  IOException e) {
    VolleyLog.d("%s",e.toString());
    return false;
  }
}

public boolean writeHeader ( OutputStream os ) { try { writeInt ( os , CACHE_MAGIC ) ; writeString ( os , key ) ; writeString ( os , etag == null ? "" : etag ) ; writeLong ( os , serverDate ) ; writeLong ( os , ttl ) ; writeLong ( os , softTtl ) ; writeStringStringMap ( responseHeaders , os ) ; writeLong ( os , lastModified ) ; os . flush ( ) ; return true ; } catch ( IOException e ) { VolleyLog . d ( "%s" , e . toString ( ) ) ; return false ; } }
writes the contents of this cacheheader to the specified outputstream .
