public void write(OutputStream out) throws IOException { try { finish(); } catch (Exception e) { throw new RuntimeException(e); } PrintWriter pw = new PrintWriter(new OutputStreamWriter(out, "UTF-8")); pw.println("<?xml version='1.0'?>"); metadata.print(0, pw); pw.flush(); }
@Override public void write(OutputStream out) throws IOException { try { finish(); } catch (Exception e) { throw new RuntimeException(e); } PrintWriter pw = new PrintWriter(new OutputStreamWriter(out, "UTF-8")); pw.println("<?xml version='1.0'?>"); metadata.print(0, pw); pw.flush(); }
@Override public void write(OutputStream out) throws IOException { try { finish(); } catch (Exception e) { throw new RuntimeException(e); } PrintWriter pw = new PrintWriter(new OutputStreamWriter(out, "UTF-8")); pw.println("<?xml version='1.0'?>"); metadata.print(0, pw); pw.flush(); }
@Override public void write(OutputStream out) throws IOException { try { finish(); } catch (Exception e) { throw new RuntimeException(e); } PrintWriter pw = new PrintWriter(new OutputStreamWriter(out, "UTF-8")); pw.println("<?xml version='1.0'?>"); metadata.print(0, pw); pw.flush(); }
@Override public void write(OutputStream out) throws IOException { try { finish(); } catch (Exception e) { throw new RuntimeException(e); } PrintWriter pw = IO.writer(out, UTF_8); pw.print("<?xml version='1.0' encoding='UTF-8'?>\n"); metadata.print(0, pw); pw.flush(); }
@Override public void write(OutputStream out) throws IOException { try { finish(); } catch (Exception e) { throw new RuntimeException(e); } PrintWriter pw = IO.writer(out, UTF_8); pw.print("<?xml version='1.0' encoding='UTF-8'?>\n"); metadata.print(0, pw); pw.flush(); }
private void parseAndMergeInheritedMetadata(TypeRef ref, Clazz child) throws Exception { if (ref.isJava()) return; Clazz ec = reporter.findClass(ref); if (ec == null) { reporter.error("Missing inherited class for Metatype annotations: " + ref + " from " + child.getClassName()); } else { MetaTypeReader mtr = new MetaTypeReader(ec, reporter); mtr.setDesignate(designatePid, factory); mtr.finish(); for (Map.Entry<MethodDef,Meta.AD> entry : mtr.methods.entrySet()) addMethod(entry.getKey(), entry.getValue()); handleInheritedClasses(ec); } }
private void parseAndMergeInheritedMetadata(TypeRef ref, Clazz child) throws Exception { if (ref.isJava()) return; Clazz ec = reporter.findClass(ref); if (ec == null) { reporter.error("Missing inherited class for Metatype annotations: %s from %s", ref, child.getClassName()); } else { @SuppressWarnings("resource") MetaTypeReader mtr = new MetaTypeReader(ec, reporter); mtr.setDesignate(designatePid, factory); mtr.finish(); for (Map.Entry<MethodDef, Annotation> entry : mtr.methods.entrySet()) addMethod(entry.getKey(), entry.getValue()); handleInheritedClasses(ec); } }
private void parseAndMergeInheritedMetadata(TypeRef ref, Clazz child) throws Exception { if (ref.isJava()) return; Clazz ec = reporter.findClass(ref); if (ec == null) { reporter.error("Missing inherited class for Metatype annotations: " + ref + " from " + child.getClassName()); } else { MetaTypeReader mtr = new MetaTypeReader(ec, reporter); mtr.setDesignate(designatePid, factory); mtr.finish(); for (Map.Entry<MethodDef,Meta.AD> entry : mtr.methods.entrySet()) addMethod(entry.getKey(), entry.getValue()); handleInheritedClasses(ec); } }
private void parseAndMergeInheritedMetadata(TypeRef ref, Clazz child) throws Exception { if (ref.isJava()) return; Clazz ec = reporter.findClass(ref); if (ec == null) { reporter.error("Missing inherited class for Metatype annotations: %s from %s", ref, child.getClassName()); } else { @SuppressWarnings("resource") MetaTypeReader mtr = new MetaTypeReader(ec, reporter); mtr.setDesignate(designatePid, factory); mtr.finish(); for (Map.Entry<MethodDef, Annotation> entry : mtr.methods.entrySet()) addMethod(entry.getKey(), entry.getValue()); handleInheritedClasses(ec); } }