Methods Summary |
---|
public int | doEndTag()
try {
reader.close();
} catch (IOException ex) {}
reader = null;
return EVAL_PAGE;
|
public int | doStartTag()
reader = getReaderFromFile(file);
exposeVariable(reader);
return EVAL_BODY_INCLUDE;
|
private void | exposeVariable(java.io.Reader reader)
if (id != null) {
pageContext.setAttribute(id, reader);
}
|
public java.io.Reader | getReaderFromFile(java.lang.String name)
InputStream in = pageContext.getServletContext().
getResourceAsStream(name);
if (in == null) {
throw new JspException("Could not access " + name);
}
return new InputStreamReader(in);
|
private void | init()
id = null;
file = null;
|
public void | release()Releases any files we may have (or inherit)
super.release();
init();
|
public void | setId(java.lang.String id)Tag's 'id' attribute
this.id = id;
|
public void | setfile(java.lang.String file)Tag's 'file' attribute
this.file = file;
|