|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.infodesire.infobit.external.impl.ExportRenderHelper
Factorizes computations required in export templates.
| Constructor Summary | |
ExportRenderHelper()
|
|
| Method Summary | |
java.lang.String |
encodeBase64(java.io.InputStream content)
Encodes binary data to base64. |
java.lang.String |
formatDay(java.util.Date date)
Gets the day-of-month of the specified date. |
java.lang.String |
formatMonth(java.util.Date date)
Gets the the month of the specified date. |
java.lang.String |
formatYear(java.util.Date date)
Gets the year of the specified date. |
java.lang.String |
getTemplate(Version version)
Dispatches the dynamic content class of the specified version to the appropriate template to externalize the content. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExportRenderHelper()
| Method Detail |
public java.lang.String getTemplate(Version version)
version - The version to externalize
version
, with respect to the classpath
public java.lang.String encodeBase64(java.io.InputStream content)
throws InfobitException
content - The content to render
InfobitException - Description of Exceptionpublic java.lang.String formatYear(java.util.Date date)
date - The date for which to get the field
date according to the Gregorian
calendarpublic java.lang.String formatMonth(java.util.Date date)
date - The date for which to get the field
date according to the
Gregorian calendar, ranging from 1 to 12public java.lang.String formatDay(java.util.Date date)
date - The date for which to get the field
date according to the
Gregorian calendar, ranging from 1 to (atmost) 31
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||