|
||||||||||
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
public class 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, attributeMap, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH |
Constructor Summary | |
---|---|
Include(File file)
Constructor. |
|
Include(InputStream in)
Constructor. |
|
Include(Reader in)
Constructor. |
|
Include(String fileName)
Constructor. |
|
Include(String directory,
String fileName)
Constructor. |
|
Include(URL url)
Constructor. |
Method Summary | |
---|---|
void |
write(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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Include(String directory, String fileName) throws IOException
directory
- Directory namefileName
- file name
IOException
- File not foundpublic Include(String fileName) throws IOException
fileName
- Filename
IOException
- File not foundpublic Include(File file) throws IOException
file
- file
IOException
- File not foundpublic Include(InputStream in) throws IOException
in
- stream
IOException
public Include(URL url) throws IOException
url
- the URL to read from.
IOException
public Include(Reader in) throws IOException
in
- reader
IOException
Method Detail |
---|
public void write(Writer out) throws IOException
Element
write
in class Element
out
- Writer to write the element to.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |