protected void createJavadocXml() throws SourceException, IOException {
if (logger.isDebugEnabled()) {
logger.debug("Reading Java source " + javaSource.getURI());
}
JavaDocBuilder builder = new JavaDocBuilder();
builder.addSource(new BufferedReader(new InputStreamReader(javaSource.getInputStream())));
javadocClass = builder.getClassByName(javadocClassName);
if (javadocClass == null) {
// An inner class is specified - let's find it:
int index = javadocUri.lastIndexOf('.');
String containingClassName = javadocUri.substring(javadocUri.indexOf(':') + 1, index);
String innerClassName = javadocUri.substring(index + 1);
containingJavadocClass = builder.getClassByName(containingClassName);
javadocClass = getJavadocInnerClass(containingJavadocClass, innerClassName);
}
}