'Write file as an entry to a jar, creating a new one if necessary.
If the total uncompressed size of all the entries written to the current jar
excludes the maximum, the current jar will be closed and a new one created.
Args:
name: the relative name of the jar entry, for example
\'java/lang/String.class\'.
path: a str that is the path of the file to be written'

def Write(self, name, path):

    self._WriteEntry(os.path.getsize(path), (lambda : self.current_jar.write(path, name)))
