'Write a str 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\'.
content: a str that is the bytes to be written to the jar entry.'

def WriteStr(self, name, content):

    self._WriteEntry(len(content), (lambda : self.current_jar.writestr(name, content)))
