Ejemplo n.º 1
0
 /**
  * Write an entry's header information to a header buffer.
  *
  * <p>This method does not use the star/GNU tar/BSD tar extensions.
  *
  * @param outbuf The tar entry header buffer to fill in.
  */
 public void writeEntryHeader(byte[] outbuf) {
   try {
     writeEntryHeader(outbuf, TarUtils.DEFAULT_ENCODING, false);
   } catch (IOException ex) {
     try {
       writeEntryHeader(outbuf, TarUtils.FALLBACK_ENCODING, false);
     } catch (IOException ex2) {
       // impossible
       throw new RuntimeException(ex2);
     }
   }
 }