Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for formatFileSize (0.22 sec)

  1. src/test/java/org/codelibs/fess/taglib/FessFunctionsTest.java

        }
    
        public void test_formatFileSize() {
            assertEquals("0", FessFunctions.formatFileSize(0));
            assertEquals("1000", FessFunctions.formatFileSize(1000));
            assertEquals("976.6K", FessFunctions.formatFileSize(1000000));
            assertEquals("953.7M", FessFunctions.formatFileSize(1000000000));
            assertEquals("931.3G", FessFunctions.formatFileSize(1000000000000L));
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/main/webapp/WEB-INF/fe.tld

        <description>
          Returns formatted number as a file size from a given value.
        </description>
        <name>formatFileSize</name>
        <function-class>org.codelibs.fess.taglib.FessFunctions</function-class>
        <function-signature>java.lang.String formatFileSize(long)</function-signature>
        <example>
          ${fe:formatFileSize(doc.content_length)}
        </example>
      </function>
    
      <function>
        <description>
    Plain Text
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu May 28 07:49:35 GMT 2020
    - 10K bytes
    - Viewed (0)
  3. src/main/webapp/WEB-INF/view/searchResults.jsp

    						<div class="d-sm-none"></div>
    						<span class="d-none d-sm-inline">&nbsp;</span>
    						<la:message key="labels.search_result_size"
    							arg0="${fe:formatFileSize(doc.content_length)}" />
    					</c:if>
    					<c:if test="${searchLogSupport && doc.click_count!=null && doc.click_count>0}">
    						<div class="d-sm-none"></div>
    						<span class="d-none d-sm-inline">&nbsp;</span>
    Others
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Jun 09 04:29:42 GMT 2022
    - 9K bytes
    - Viewed (0)
  4. src/main/webapp/WEB-INF/orig/view/searchResults.jsp

    						<div class="d-sm-none"></div>
    						<span class="d-none d-sm-inline">&nbsp;</span>
    						<la:message key="labels.search_result_size"
    							arg0="${fe:formatFileSize(doc.content_length)}" />
    					</c:if>
    					<c:if test="${searchLogSupport && doc.click_count!=null && doc.click_count>0}">
    						<div class="d-sm-none"></div>
    						<span class="d-none d-sm-inline">&nbsp;</span>
    Others
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Jun 09 04:29:42 GMT 2022
    - 9K bytes
    - Viewed (1)
  5. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            final Locale locale = ComponentUtil.getRequestManager().getUserLocale();
            if (locale == null) {
                return Locale.ROOT;
            }
            return locale;
        }
    
        public static String formatFileSize(final long value) {
            double target = value;
            String unit = ""; // TODO l10n?
            String format = "0.#";
            if (value < 1024) {
                format = "0";
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.9K bytes
    - Viewed (0)
Back to top