Bug 120560 [implementation] Add logging of JME back when accessing Javadoc from attached Javadoc
I20051213-0010. Add logging of JME back when accessing Javadoc from attached Javadoc, see bug .
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ProposalInfo.java
if (member != null) {
				try {
					Reader reader= JavadocContentAccess.getHTMLContentReader(member, true, true);
					if (reader != null)
						return getString(reader);
				} catch (JavaModelException e) {
					return null;
				}
			}
		return null;
	}
	
	/**
	 * Gets the reader content as a String
	 */
	private static String getString(Reader reader) {
		StringBuffer buf= new StringBuffer();
		char[] buffer= new char[1024];
		int count;
		try {
			while ((count= reader.read(buffer)) != -1)
				buf.append(buffer, 0, count);
		} catch (IOException e) {
			return null;
		}
		return buf.toString();
	}
	
}