void analyze(Document doc, InputStream in, Writer xrefOut) throws IOException {
List<String> defs = new ArrayList<>();
List<String> refs = new ArrayList<>();
List<String> full = new ArrayList<>();
ClassParser classparser = new ClassParser(in, doc.get("path"));
StringWriter out = new StringWriter();
StringWriter fout = new StringWriter();
getContent(out, fout, classparser.parse(), defs, refs, full);
String fullt = fout.toString();
String xref = out.toString();
if (xrefOut != null) {
xrefOut.append(xref);