Ejemplo n.º 1
0
 public void EnterList(OfcListType type, int capacity)
 {
     if (_compress != null)
     {
         return;                    //throw new NotSupportedException();
     }
     _compress = _algorithm.Compress(null, _config, _output, (int)type, capacity);
 }
Ejemplo n.º 2
0
 public IReporter <OfcNumber> Compress(IFile target, IConfiguaration configuaration, Stream output, int width, int height)
 {
     if (_routeMode)
     {
         return(new RounderReporter(_embeddedAlgorithm.Compress(target, configuaration, output, width, height), configuaration));
     }
     return(new RounderReporter(_stream, configuaration));
 }
Ejemplo n.º 3
0
        public IReporter <string> Compress(IFile target, IConfiguaration configuaration, Stream output, int width, int height)
        {
            var nextReporter = _next.Compress(target, configuaration, output, width, height);

            return(new RoundingDigitsReporter(configuaration.Get <int>("roundingdecimals"), nextReporter));
        }
Ejemplo n.º 4
0
 public IReporter <string> Compress(IFile target, IConfiguaration configuaration, Stream output, int width, int height)
 {
     return(new ConvertingReporter <T>(_algorithm.Compress(target, configuaration, output, width, height), _converter));
 }