Ejemplo n.º 1
0
 public DynamicParser(ILog log, CosBaseParser baseParser, CosStreamParser streamParser, ObjectStreamParser objectStreamParser)
 {
     this.log                = log;
     this.baseParser         = baseParser ?? throw new ArgumentNullException(nameof(baseParser));
     this.streamParser       = streamParser ?? throw new ArgumentNullException(nameof(streamParser));
     this.objectStreamParser = objectStreamParser ?? throw new ArgumentNullException(nameof(objectStreamParser));
 }
Ejemplo n.º 2
0
 public PdfObjectParser(ILog log, CosBaseParser baseParser, CosStreamParser streamParser, CrossReferenceTable crossReferenceTable,
                        BruteForceSearcher bruteForceSearcher,
                        CosObjectPool objectPool,
                        ObjectStreamParser objectStreamParser)
 {
     this.log                 = log ?? new NoOpLog();
     this.baseParser          = baseParser ?? throw new ArgumentNullException(nameof(baseParser));
     this.streamParser        = streamParser ?? throw new ArgumentNullException(nameof(streamParser));
     this.crossReferenceTable = crossReferenceTable ?? throw new ArgumentNullException(nameof(crossReferenceTable));
     this.bruteForceSearcher  = bruteForceSearcher ?? throw new ArgumentNullException(nameof(bruteForceSearcher));
     this.objectPool          = objectPool ?? throw new ArgumentNullException(nameof(objectPool));
     this.objectStreamParser  = objectStreamParser ?? throw new ArgumentNullException(nameof(objectStreamParser));
 }