public ContentDispositionFieldParser(ExtendedFieldParser original)
            : base(original)
        {
            Original = original;
            m_DispositionTypes = new List<string>();

            m_DispositionPattern = PatternFactory.GetInstance().Get(typeof (Pattern.DispositionParmPattern));
            m_TokenPattern = PatternFactory.GetInstance().Get(typeof (RFC822.Pattern.TokenPattern));
            m_DispositionTypePattern = PatternFactory.GetInstance().Get(typeof (Pattern.DispositionTypePattern));
            m_ValuePattern = PatternFactory.GetInstance().Get(typeof (RFC2045.Pattern.ValuePattern));
        }
Exemplo n.º 2
0
 public void setup()
 {
     m_Parser =
         new ExtendedFieldParser(
             new ContentTransferEncodingFieldParser(new ContentTypeFieldParser(new FieldParser())));
 }