code: public void writeEntry(String path, ByteSource contents) throws IOException {
      stream.putNextEntry(new ZipEntry(path));
      contents.copyTo(stream);
      stream.closeEntry();
    }
docs: Writes a single entry to the jar.