Skip to contentMethod: PageData()
1: /*
2: * Copyright (c) 1997, 2020 Oracle and/or its affiliates and others.
3: * All rights reserved.
4: * Copyright 2004 The Apache Software Foundation
5: *
6: * Licensed under the Apache License, Version 2.0 (the "License");
7: * you may not use this file except in compliance with the License.
8: * 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, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package jakarta.servlet.jsp.tagext;
20:
21: import java.io.InputStream;
22:
23: /**
24: * Translation-time information on a JSP page. The information corresponds to the XML view of the JSP page.
25: *
26: * <p>
27: * Objects of this type are generated by the JSP translator, e.g. when being pased to a TagLibraryValidator instance.
28: */
29: abstract public class PageData {
30:
31: /**
32: * Sole constructor. (For invocation by subclass constructors, typically implicit.)
33: */
34: public PageData() {
35: }
36:
37: /**
38: * Returns an input stream on the XML view of a JSP page. The stream is encoded in UTF-8. Recall tht the XML view of
39: * a JSP page has the include directives expanded.
40: *
41: * @return An input stream on the document.
42: */
43: abstract public InputStream getInputStream();
44: }