code: @Override
      public void put(InputStream source) throws IOException {
          if (source == null)
              return;
  
          // Error condition checking in putStream (directory, unknown file, etc.)
          OutputStream os = putStream();
          byte[] buffer = new byte[1024];
          try {
              int read;
              while ((read = source.read(buffer)) >= 0) {
                  os.write(buffer, 0, read);
              }
          } finally {
              os.close();
          }
      }
docs: {@inheritDoc}