예제 #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();
        }
예제 #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);
 }