public static void Write(SpssData spssData, Stream stream) { var writer = new SpssWriter(spssData, stream); writer.MetadataWriter.Write(); writer.DataWriter.Write(); ((IDisposable)writer).Dispose(); }
public SpssWriter(SpssData spssData, Stream stream) { _writer = new BinaryWriter(stream, Encoding.ASCII, true); MetadataWriter = new MetadataWriter(_writer, spssData.Metadata); DataWriter = new DataWriter(_writer, spssData); }