code: public static Observable<String> getFileExtension(final String fileName) {
      return Observable.fromCallable(new Func0<String>() {
        @Override
        public String call() {
          return fileName.substring((fileName.lastIndexOf('.')) + 1);
        }
      });
    }
docs: /*
  Get a file extension based on the given file name.