Esempio n. 1
0
        public static void Write(SpssData spssData, Stream stream)
        {
            var writer = new SpssWriter(spssData, stream);

            writer.MetadataWriter.Write();
            writer.DataWriter.Write();
            ((IDisposable)writer).Dispose();
        }
Esempio n. 2
0
 public SpssWriter(SpssData spssData, Stream stream)
 {
     _writer        = new BinaryWriter(stream, Encoding.ASCII, true);
     MetadataWriter = new MetadataWriter(_writer, spssData.Metadata);
     DataWriter     = new DataWriter(_writer, spssData);
 }