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, write
public 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
- streamIOException
public Include(URL url) throws IOException
url
- the URL to read from.IOException
public Include(Reader in) throws IOException
in
- readerIOException
public void write(Writer out) throws IOException
Element
write
in class Element
out
- Writer to write the element to.IOException
Copyright © 2013. All rights reserved.