Ejemplo n.º 1
0
  private static void testFlatXmlWriter() throws Exception {
    MockDataSetProducer mockProducer = new MockDataSetProducer();
    mockProducer.setupColumnCount(5);
    mockProducer.setupRowCount(100000);
    mockProducer.setupTableCount(10);
    IDataSet dataSet = new StreamingDataSet(mockProducer);

    OutputStream out = new FileOutputStream("flatXmlWriterTest.xml");
    FlatXmlWriter writer = new FlatXmlWriter(new OutputStreamWriter(out, "UTF8"));
    writer.write(dataSet);
  }