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.getPackage() == null) {
// An inner class is specified - let's find it:
int index = javadocClassName.lastIndexOf('.');
String containingClassName = javadocClassName.substring(0, index);
String innerClassName = javadocClassName.substring(index + 1);
containingJavadocClass = builder.getClassByName(containingClassName);
javadocClass = containingJavadocClass.getInnerClassByName(innerClassName);
}
}