Code example for OutputStreamWriter

Methods: close

0
    writer.addStyleKeyFactory(new DefaultStyleKeyFactory());
    writer.addStyleKeyFactory(new PageableLayoutStyleKeyFactory());
    writer.addTemplateCollection(new DefaultTemplateCollection());
    writer.addElementFactory(new DefaultElementFactory());
    writer.addDataSourceFactory(new DefaultDataSourceFactory());
    final OutputStreamWriter w = new OutputStreamWriter(System.out);
    writer.write(w);
    w.close();
  } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE