private static void Decode(Stream inputStream, Stream outputStream)
 {
     var decoderInput = new StreamDecoderInput(inputStream);
     var decoderOutput = new StreamDecoderOutput(outputStream);
     var stringTable = new FrameworkDictionaryStringTable(1000);
     var decoder = new LzwDecoder(decoderInput, decoderOutput, stringTable);
     decoder.Decode();
     outputStream.Flush();
     outputStream.Seek(0, SeekOrigin.Begin);
 }
 private LzwDecoder CreateDecoder()
 {
     inputStream = new MemoryStream(dataToDecode);
     outputStream = new MemoryStream();
     var decoderInput = new StreamDecoderInput(inputStream);
     var decoderOutput = new StreamDecoderOutput(outputStream);
     IStringTable stringTable = CreateStringTable();
     var decoder = new LzwDecoder(decoderInput, decoderOutput, stringTable);
     return decoder;
 }
        public void SetUp()
        {
            inputStream = CreateInputStreamWithData();
            IDecoderInput input = new StreamDecoderInput(inputStream);

            outputStream = new MemoryStream();
            IDecoderOutput output = new StreamDecoderOutput(outputStream);

            IStringTable stringTable = new FrameworkDictionaryStringTable(100);
            target = new LzwDecoder(input, output, stringTable);
        }
 public void SetUp()
 {
     outputStream = new MemoryStream();
     target = new StreamDecoderOutput(outputStream);
 }