01: // MimeHeadersFactory.java
02: // $Id: MimeHeadersFactory.java,v 1.2 1998/01/22 14:30:21 bmahe Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.www.mime;
07:
08: /**
09: * A Mime header factory, that will build instances of the MimeHeaders class
10: * to hold MIME headers.
11: */
12:
13: public class MimeHeadersFactory implements MimeParserFactory {
14:
15: /**
16: * Create a new header holder to hold the parser's result.
17: * @param parser The parser that has something to parse.
18: * @return A MimeParserHandler compliant object.
19: */
20:
21: public MimeHeaderHolder createHeaderHolder(MimeParser parser) {
22: return new MimeHeaders(parser);
23: }
24:
25: }
|