|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.html.Element | +--org.mortbay.html.Include
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.
Element
Field Summary |
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 |
Constructor Detail |
public Include(java.lang.String directory, java.lang.String fileName) throws java.io.IOException
directory
- Directory namefileName
- file name
java.io.IOException
- File not foundpublic Include(java.lang.String fileName) throws java.io.IOException
fileName
- Filename
java.io.IOException
- File not foundpublic Include(java.io.File file) throws java.io.IOException
file
- file
java.io.IOException
- File not foundpublic Include(java.io.InputStream in) throws java.io.IOException
in
- stream
java.io.IOException
public Include(java.net.URL url) throws java.io.IOException
url
- the URL to read from.
java.io.IOException
public Include(java.io.Reader in) throws java.io.IOException
in
- reader
java.io.IOException
Method Detail |
public void write(java.io.Writer out) throws java.io.IOException
Element
write
in class Element
out
- Writer to write the element to.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |