org.mortbay.html

Class Include

public class Include extends Element

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.

Version: $Id: Include.java,v 1.6 2005/08/13 00:01:23 gregwilkins Exp $

Author: Greg Wilkins

See Also: Element

Constructor Summary
Include(String directory, String fileName)
Constructor.
Include(String fileName)
Constructor.
Include(File file)
Constructor.
Include(InputStream in)
Constructor.
Include(URL url)
Constructor.
Include(Reader in)
Constructor.
Method Summary
voidwrite(Writer out)

Constructor Detail

Include

public Include(String directory, String fileName)
Constructor. Include file

Parameters: directory Directory name fileName file name

Throws: IOException File not found

Include

public Include(String fileName)
Constructor. Include file.

Parameters: fileName Filename

Throws: IOException File not found

Include

public Include(File file)
Constructor. Include file.

Parameters: file file

Throws: IOException File not found

Include

public Include(InputStream in)
Constructor. Include InputStream. Byte to character transformation is done assuming the default local character set. What this means is that on EBCDIC systems the included file is assumed to be in EBCDIC.

Parameters: in stream

Throws: IOException

Include

public Include(URL url)
Constructor. Include contents of a URL. Byte to character transformation is done assuming the default local character set. What this means is that on EBCDIC systems the included file is assumed to be in EBCDIC.

Parameters: url the URL to read from.

Throws: IOException

Include

public Include(Reader in)
Constructor. Include Reader.

Parameters: in reader

Throws: IOException

Method Detail

write

public void write(Writer out)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.