Пример #1
0
 public static SimisJinxWriter ToJinxStream(Stream stream, bool streamIsBinary, bool streamIsCompressed, SimisProvider simisProvider, bool jinxStreamIsBinary, SimisJinxFormat jinxStreamFormat)
 {
     if (!stream.CanWrite)
     {
         throw new ArgumentException("Stream must support writing.", "stream");
     }
     if (!stream.CanSeek)
     {
         throw new ArgumentException("Stream must support seeking.", "stream");
     }
     return(new SimisJinxWriter(SimisStreamWriter.ToStream(stream, streamIsBinary, streamIsCompressed), simisProvider, jinxStreamIsBinary, jinxStreamFormat));
 }
Пример #2
0
 public static SimisAceWriter ToAceStream(Stream stream, bool streamIsBinary, bool streamIsCompressed)
 {
     if (!stream.CanWrite)
     {
         throw new ArgumentException("Stream must support writing.", "stream");
     }
     if (!stream.CanSeek)
     {
         throw new ArgumentException("Stream must support seeking.", "stream");
     }
     return(new SimisAceWriter(SimisStreamWriter.ToStream(stream, streamIsBinary, streamIsCompressed)));
 }