class RxFiles {

  @Nonnull
  public Single<String> readStringFromFile(@Nonnull final File file, @Nonnull final Charset charset) {
    checkNotNull(file, "\'file\' must not be null.");
    checkNotNull(charset, "\'charset\' must not be null.");
    
    return readBytesFromFile(file).map(bytes -> new String(bytes, charset));
  }

}