Code example for Writer

Methods: write

0
            sb.append("<a href=\"javascript:void(0)\" onclick=\"fileDownload('" + fileDef.getId() + "')\">");
            sb.append("<i class=\"icon-download\"></i> " + fileDef.getFileRealName() + " ("
                    + FileUtils.byteCountToDisplaySize(fileDef.getFileLength()) + ")");
            sb.append("</a>");
            try { 
                writer.write(sb.toString());
            } catch (IOException e) {
                LOG.error("Could not write out Date tag", e);
            } 
        } 
        return super.end(writer, "");
    } 
 
    public interface FileDef { 
        String getFileRealName();
 
        int getFileLength(); 
 
        String getId();
    }