To read from IDocument extend java.io.Reader rather than
java.io.InputStream