String jasmin = sw.toString();
ClassFile cf = new ClassFile();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
cf.readJasmin(new StringReader(jasmin), "test", false);
if (cf.errorCount() != 0) {
throw new jasError();
}
cf.write(bos);
bos.close();