org.mortbay.html
Class Include
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.1 2001/09/02 01:13:08 gregwilkins Exp $
- Author:
- Greg Wilkins
- See Also:
Element
Fields inherited from class org.mortbay.html.Element |
ALIGN, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH |
Constructor Summary |
Include(java.io.File file)
Constructor. |
Include(java.io.InputStream in)
Constructor. |
Include(java.io.Reader in)
Constructor. |
Include(java.lang.String fileName)
Constructor. |
Include(java.lang.String directory,
java.lang.String fileName)
Constructor. |
Include(java.net.URL url)
Constructor. |
Method Summary |
void |
write(java.io.Writer out)
Write element to a Writer. |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Include
public Include(java.lang.String directory,
java.lang.String fileName)
throws java.io.IOException
- Constructor.
Include file
- Parameters:
directory
- Directory namefileName
- file name- Throws:
java.io.IOException
- File not found
Include
public Include(java.lang.String fileName)
throws java.io.IOException
- Constructor.
Include file.
- Parameters:
fileName
- Filename- Throws:
java.io.IOException
- File not found
Include
public Include(java.io.File file)
throws java.io.IOException
- Constructor.
Include file.
- Parameters:
file
- file- Throws:
java.io.IOException
- File not found
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.
- Parameters:
in
- stream- Throws:
java.io.IOException
-
Include
public Include(java.net.URL url)
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.
- Parameters:
in
- stream- Throws:
java.io.IOException
-
Include
public Include(java.io.Reader in)
throws java.io.IOException
- Constructor.
Include Reader.
- Parameters:
in
- reader- 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.
- Overrides:
write
in class Element
- Following copied from class:
org.mortbay.html.Element
- Parameters:
out
- Writer to write the element to.
Copyright © 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.