code: public final static DataReader createDataReader(File file, IOType type) {
          if(type == IOType.MAPPED) {
              if(file.length() <= Integer.MAX_VALUE) {
                  return new MappedReader(file);
              } else {
                  return new MultiMappedReader(file);
              }
          } else {
              return new ChannelReader(file);
          }
      }
docs: Creates a new DataReader to read from a file.
  
  @param file - file to read.
  @param type - I/O type.
  @return a new DataReader instance.