java.lang.Object
org.mortbay.html.Element
org.mortbay.html.Include
- public class Include
- extends Element
Include File, InputStream or Reader Element.
This Element includes another file.
This class expects that the HTTP directory separator '/' will be used.
This will be converted to the local directory separator.
- Version:
- $Id: Include.java,v 1.4 2003/09/18 13:29:20 gregwilkins Exp $
| Fields inherited from class org.mortbay.html.Element |
ALIGN, attributeMap, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH |
| Methods inherited from class org.mortbay.html.Element |
attribute, attribute, attribute, attributes, attributes, bgColor, bottom, center, color, cssClass, cssID, height, height, height, left, middle, right, setAttributesFrom, size, size, size, style, top, toString, width, width, width, write, write |
log
private static org.apache.commons.logging.Log log
reader
java.io.Reader reader
Include
public Include(java.lang.String directory,
java.lang.String fileName)
throws java.io.IOException
- Constructor.
Include file
Include
public Include(java.lang.String fileName)
throws java.io.IOException
- Constructor.
Include file.
Include
public Include(java.io.File file)
throws java.io.IOException
- Constructor.
Include file.
Include
public Include(java.io.InputStream in)
throws java.io.IOException
- Constructor.
Include InputStream.
Byte to character transformation is done assuming the default
local character set. What this means is that on EBCDIC systems
the included file is assumed to be in EBCDIC.
Include
public Include(java.net.URL url)
throws java.io.IOException
- Constructor.
Include contents of a URL.
Byte to character transformation is done assuming the default
local character set. What this means is that on EBCDIC systems
the included file is assumed to be in EBCDIC.
Include
public Include(java.io.Reader in)
throws java.io.IOException
- Constructor.
Include Reader.
includeFile
private void includeFile(java.io.File file)
throws java.io.IOException
write
public void write(java.io.Writer out)
throws java.io.IOException
- Description copied from class:
Element
- Write element to a Writer.
This abstract method is called by the Page or other containing
Element to write the HTML for this element. This must be implemented
by the derived Element classes.
- Specified by:
write in class Element