MIME4J-5 Performance patch 3, https://issues.apache.org/jira/browse/MIME4J-5. Contrib...
[mime4j.git] / src / main / java / org / apache / james / mime4j / RFC3066ContentLanguageDescriptor.java
blob225f657f43355456e73f4bbedb1295a7c3fd5ed3
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 package org.apache.james.mime4j;
21 import java.util.List;
23 /**
24 * Describes RFC3066 content-language headers.
26 public interface RFC3066ContentLanguageDescriptor {
28 /**
29 * Get the <code>content-language</code> header values.
30 * Each applicable language tag will be returned in order.
31 * See <a href='http://tools.ietf.org/html/rfc4646'>RFC4646</a>
32 * <cite>http://tools.ietf.org/html/rfc4646</cite>.
33 * @return list of language tag Strings,
34 * or null if no header exists
36 public abstract List getContentLanguage();
38 /**
39 * Gets any exception thrown during the parsing of {@link #getContentLanguage()}
40 * @return <code>ParseException</code> when the content-language parse fails,
41 * null otherwise
43 public abstract MimeException getContentLanguageParseException();