code: public static StoreWriter createWriter(OutputStream stream, Configuration config) {
      return StoreImpl.createWriter(stream, config);
    }
docs: Creates a store writer with the specified  <code>stream</code> as destination.
  <p>
  The writer will only write bytes to the stream when {@link StoreWriter#close() }
  is called.
  
  @param stream output stream
  @param config configuration
  @return a store writer