public class Include extends 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| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(Writer out)
Write element to a Writer.
|
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, writepublic Include(String directory, String fileName) throws IOException
directory - Directory namefileName - file nameIOException - File not foundpublic Include(String fileName) throws IOException
fileName - FilenameIOException - File not foundpublic Include(File file) throws IOException
file - fileIOException - File not foundpublic Include(InputStream in) throws IOException
in - streamIOExceptionpublic Include(URL url) throws IOException
url - the URL to read from.IOExceptionpublic Include(Reader in) throws IOException
in - readerIOExceptionpublic void write(Writer out) throws IOException
Elementwrite in class Elementout - Writer to write the element to.IOExceptionCopyright © 2013. All rights reserved.