code: public static ReadStreamOld openRead(Reader reader)
    {
      if (reader instanceof ReadStreamOld.StreamReader)
        return ((ReadStreamOld.StreamReader) reader).getStream();
      
      ReaderWriterStream s = new ReaderWriterStream(reader, null);
      ReadStreamOld is = new ReadStreamOld(s);
      try {
        is.setEncoding("utf-8");
      } catch (Exception e) {
      }
  
      return is;
    }
docs: Creates a ReadStream from a Reader