Ejemplo n.º 1
0
 /**
  * Configures the stream to write prefix file data.
  *
  * @throws ZipException if other contents have already been written to the output stream
  */
 public void startPrefixFile() throws ZipException {
   checkNotFinished();
   if (!zipData.getEntries().isEmpty() || entry != null) {
     throw new ZipException("Cannot add a prefix file after the zip contents have been started.");
   }
   writingPrefix = true;
 }