Package com.jalios.jcms.taglib
Class FileSizeTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- com.jalios.jcms.taglib.FileSizeTag
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
public class FileSizeTag extends javax.servlet.jsp.tagext.TagSupportThis tag prints the formatted size of a file. For instance, 3.54 MB.- Author:
- Olivier Dedieu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileSizeTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoEndTag()intdoStartTag()voidsetDoc(FileDocument doc)voidsetLocale(java.util.Locale locale)voidsetSize(long size)
-
-
-
Method Detail
-
setSize
public void setSize(long size)
-
setDoc
public void setDoc(FileDocument doc)
-
setLocale
public void setLocale(java.util.Locale locale)
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.TagSupport- Throws:
javax.servlet.jsp.JspException
-
doEndTag
public int doEndTag()
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.TagSupport
-
-