code: public CachedWriter createWriter(boolean pretty) throws IOException {
  		CachedWriter writer = new CachedWriter();
  		writer.buffer = new ByteArrayOutputStream(512);
  		writer.writer = IonBinaryWriterBuilder.standard().build(writer.buffer);
  		return writer;
  	}
docs: --- WRITER FACTORY ---