1bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook/**************************************************************** 2bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * Licensed to the Apache Software Foundation (ASF) under one * 3bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * or more contributor license agreements. See the NOTICE file * 4bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * distributed with this work for additional information * 5bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * regarding copyright ownership. The ASF licenses this file * 6bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * to you under the Apache License, Version 2.0 (the * 7bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * "License"); you may not use this file except in compliance * 8bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * with the License. You may obtain a copy of the License at * 9bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * * 10bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * http://www.apache.org/licenses/LICENSE-2.0 * 11bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * * 12bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * Unless required by applicable law or agreed to in writing, * 13bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * software distributed under the License is distributed on an * 14bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * 15bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * KIND, either express or implied. See the License for the * 16bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * specific language governing permissions and limitations * 17bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * under the License. * 18bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook ****************************************************************/ 19bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook 20bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrookpackage org.apache.james.mime4j.message; 21bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook 22bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrookimport java.io.IOException; 23bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrookimport java.io.Reader; 24bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook 25bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook 26bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook/** 27bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * Encapsulates the contents of a <code>text/*</code> entity body. 28bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * 29bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * 30bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * @version $Id: TextBody.java,v 1.3 2004/10/02 12:41:11 ntherning Exp $ 31bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook */ 32bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrookpublic interface TextBody extends Body { 33bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook 34bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook /** 35bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * Gets a <code>Reader</code> which may be used to read out the contents 36bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * of this body. 37bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * 38bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * @return the <code>Reader</code>. 39bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook * @throws IOException on I/O errors. 40bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook */ 41bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook Reader getReader() throws IOException; 42bc47398187c6ffd132435e51d8d61e6ec79a79dbPaul Westbrook} 43