@Test public void testExportDataDumpOk() throws IOException { DataSet dataSet = DataTestUtils.createStubDataSet( 8 ); File file = this.folder.newFile( "dump.vcd" ); FileOutputStream fos = new FileOutputStream( file ); try { this.exporter.export( dataSet, this.component, fos ); } finally { HostUtils.closeResource( fos ); } }
@Override public void export( final DataSet aDataSet, final JComponent aComponent, final OutputStream aStream ) throws IOException { final PrintWriter writer = new PrintWriter( aStream ); try { final AcquisitionResult capturedData = aDataSet.getCapturedData(); final double timescale = getTimebase( capturedData.getSampleRate() ); writePreamble( writer, aDataSet, timescale ); writeVariableDump( writer, aDataSet ); writeDataDump( writer, capturedData, timescale ); } finally { writer.flush(); } }
ValueChangeDumpExporter implements Exporter { @Override public void export( final DataSet aDataSet, final JComponent aComponent, final OutputStream aStream ) throws IOException { final PrintWriter writer = new PrintWriter( aStream ); try { final AcquisitionResult capturedData = aDataSet.getCapturedData(); final double timescale = getTimebase( capturedData.getSampleRate() ); writePreamble( writer, aDataSet, timescale ); writeVariableDump( writer, aDataSet ); writeDataDump( writer, capturedData, timescale ); } finally { writer.flush(); } } }
ValueChangeDumpExporter implements Exporter { @Override public void export( final DataSet aDataSet, final JComponent aComponent, final OutputStream aStream ) throws IOException { final PrintWriter writer = new PrintWriter( aStream ); try { final AcquisitionResult capturedData = aDataSet.getCapturedData(); final double timescale = getTimebase( capturedData.getSampleRate() ); writePreamble( writer, aDataSet, timescale ); writeVariableDump( writer, aDataSet ); writeDataDump( writer, capturedData, timescale ); } finally { writer.flush(); } }  }
ValueChangeDumpExporter implements Exporter { @Override public void export( final DataSet aDataSet, final JComponent aComponent, final OutputStream aStream ) throws IOException { final PrintWriter writer = new PrintWriter( aStream ); try { final AcquisitionResult capturedData = aDataSet.getCapturedData(); final double timescale = getTimebase( capturedData.getSampleRate() ); writePreamble( writer, aDataSet, timescale ); writeVariableDump( writer, aDataSet ); writeDataDump( writer, capturedData, timescale ); } finally { writer.flush(); } }  @Override void export( final DataSet aDataSet, final JComponent aComponent, final OutputStream aStream ); @Override String[] getFilenameExtentions(); @Override String getName(); }
ValueChangeDumpExporter implements Exporter { @Override public void export( final DataSet aDataSet, final JComponent aComponent, final OutputStream aStream ) throws IOException { final PrintWriter writer = new PrintWriter( aStream ); try { final AcquisitionResult capturedData = aDataSet.getCapturedData(); final double timescale = getTimebase( capturedData.getSampleRate() ); writePreamble( writer, aDataSet, timescale ); writeVariableDump( writer, aDataSet ); writeDataDump( writer, capturedData, timescale ); } finally { writer.flush(); } }  @Override void export( final DataSet aDataSet, final JComponent aComponent, final OutputStream aStream ); @Override String[] getFilenameExtentions(); @Override String getName();  }