public void serialize( Options options, OutputStream output, @Optional Object object ) { try { StringWriter writer = new StringWriter(); serialize( options, writer, object ); output.write( writer.toString().getBytes( UTF_8 ) ); } catch( IOException ex ) { throw new UncheckedIOException( ex ); } } }
public void serialize( Options options, OutputStream output, @Optional Object object ) { try { StringWriter writer = new StringWriter(); serialize( options, writer, object ); output.write( writer.toString().getBytes( UTF_8 ) ); } catch( IOException ex ) { throw new UncheckedIOException( ex ); } } }