code: @Override
      public final void to(File f, WriteCache cache) throws IOException {
          if (cache == null) {
              to(f);
              return;
          }
          if (f == null) throw new NullPointerException();
          // delegate to the equivalent internal method
          to(f, cache);
      }
docs: {@inheritDoc}