public byte[] createJarFromClassContent(final String className,final String content) throws IOException {
  ByteArrayOutputStream byteArrayOutputStream=new ByteArrayOutputStream();
  writeJarFromContent(className,content,byteArrayOutputStream);
  return byteArrayOutputStream.toByteArray();
}

public byte [ ] createJarFromClassContent ( final String className , final String content ) throws IOException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream ( ) ; writeJarFromContent ( className , content , byteArrayOutputStream ) ; return byteArrayOutputStream . toByteArray ( ) ; }
create a jar using the given class contents and with the given class name .
