01 /*
02 * Copyright 2004 The Apache Software Foundation
03 *
04 * Licensed under the Apache License, Version 2.0 (the "License");
05 * you may not use this file except in compliance with the License.
06 * You may obtain a copy of the License at
07 *
08 * http://www.apache.org/licenses/LICENSE-2.0
09 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 package javax.servlet.jsp.tagext;
18
19 import java.io.InputStream;
20
21 /**
22 * Translation-time information on a JSP page. The information
23 * corresponds to the XML view of the JSP page.
24 *
25 * <p>
26 * Objects of this type are generated by the JSP translator, e.g.
27 * when being pased to a TagLibraryValidator instance.
28 */
29
30 abstract public class PageData {
31
32 /**
33 * Sole constructor. (For invocation by subclass constructors,
34 * typically implicit.)
35 */
36 public PageData() {
37 }
38
39 /**
40 * Returns an input stream on the XML view of a JSP page.
41 * The stream is encoded in UTF-8. Recall tht the XML view of a
42 * JSP page has the include directives expanded.
43 *
44 * @return An input stream on the document.
45 */
46 abstract public InputStream getInputStream();
47 }
|