org.mortbay.html
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(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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(java.io.Writer out)
Write element to a Writer.
|
public Include(java.lang.String directory,
java.lang.String fileName)
throws java.io.IOException
directory - Directory namefileName - file namejava.io.IOException - File not foundpublic Include(java.lang.String fileName)
throws java.io.IOException
fileName - Filenamejava.io.IOException - File not foundpublic Include(java.io.File file)
throws java.io.IOException
file - filejava.io.IOException - File not foundpublic Include(java.io.InputStream in)
throws java.io.IOException
in - streamjava.io.IOExceptionpublic Include(java.net.URL url)
throws java.io.IOException
url - the URL to read from.java.io.IOExceptionpublic Include(java.io.Reader in)
throws java.io.IOException
in - readerjava.io.IOExceptionpublic void write(java.io.Writer out)
throws java.io.IOException
ElementCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.