code: public OutputStream create(String src,
                               boolean overwrite,
                               short replication,
                               long blockSize,
                               Progressable progress
                               ) throws IOException {
      return create(src, overwrite, replication, blockSize, progress,
          conf.getInt("io.file.buffer.size", 4096));
    }
docs: Create a new dfs file with the specified block replication
  with write-progress reporting and return an output stream for writing
  into the file.
  
  @param src stream name
  @param overwrite do not check for file existence if true
  @param replication block replication
  @return output stream
  @throws IOException