source: contrib/MailArchiver/sources/vendor/mime4j/apache-mime4j-0.7-SNAPSHOT-20110327.010440-17/core/src/main/java/org/apache/james/mime4j/parser/AbstractContentHandler.java @ 6785

Revision 6785, 2.6 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado codigo do MailArchiver?. Documentação na subpasta DOCS.

Line 
1/****************************************************************
2 * Licensed to the Apache Software Foundation (ASF) under one   *
3 * or more contributor license agreements.  See the NOTICE file *
4 * distributed with this work for additional information        *
5 * regarding copyright ownership.  The ASF licenses this file   *
6 * to you under the Apache License, Version 2.0 (the            *
7 * "License"); you may not use this file except in compliance   *
8 * with the License.  You may obtain a copy of the License at   *
9 *                                                              *
10 *   http://www.apache.org/licenses/LICENSE-2.0                 *
11 *                                                              *
12 * Unless required by applicable law or agreed to in writing,   *
13 * software distributed under the License is distributed on an  *
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
15 * KIND, either express or implied.  See the License for the    *
16 * specific language governing permissions and limitations      *
17 * under the License.                                           *
18 ****************************************************************/
19
20package org.apache.james.mime4j.parser;
21
22import org.apache.james.mime4j.MimeException;
23import org.apache.james.mime4j.stream.BodyDescriptor;
24import org.apache.james.mime4j.stream.RawField;
25
26import java.io.IOException;
27import java.io.InputStream;
28
29/**
30 * Abstract <code>ContentHandler</code> with default implementations of all
31 * the methods of the <code>ContentHandler</code> interface.
32 *
33 * The default is to do nothing.
34 */
35public abstract class AbstractContentHandler implements ContentHandler {
36   
37    public void endMultipart() throws MimeException {
38    }
39   
40    public void startMultipart(BodyDescriptor bd) throws MimeException {
41    }
42   
43    public void body(BodyDescriptor bd, InputStream is)
44            throws MimeException, IOException {
45    }
46   
47    public void endBodyPart() throws MimeException {
48    }
49   
50    public void endHeader() throws MimeException {
51    }
52   
53    public void endMessage() throws MimeException {
54    }
55   
56    public void epilogue(InputStream is) throws MimeException, IOException {
57    }
58   
59    public void field(RawField field) throws MimeException {
60    }
61   
62    public void preamble(InputStream is) throws MimeException, IOException {
63    }
64   
65    public void startBodyPart() throws MimeException {
66    }
67   
68    public void startHeader() throws MimeException {
69    }
70   
71    public void startMessage() throws MimeException {
72    }
73   
74    public void raw(InputStream is) throws MimeException, IOException {
75    }
76
77}
Note: See TracBrowser for help on using the repository browser.