When MDLReader is used with a StringReader it fails
with the following exception:
Exception in thread "main"
org.openscience.cdk.exception.CDKException: Error while
parsing line 1: null in property block.
Attached is an example program that generates this error.
I think the problem is the use of input.ready() to try
to determine when the end of the input stream has been
reached. However, input.ready() is always true when
the underlying stream is from a StringReader, even when
at the end of the stream.
I believe the correct way to determine when the end of
the stream has been reached is to check whether
input.readLine() == null.