Package org.exoplatform.applications.ooplugin.props

Examples of org.exoplatform.applications.ooplugin.props.ContentLengthProp


   }

   private String formatLine(ResponseDoc response)
   {
      DisplayNameProp displayNameProperty = (DisplayNameProp) response.getProperty(WebDavProp.DISPLAYNAME);
      ContentLengthProp contentLengthProperty = (ContentLengthProp) response.getProperty(WebDavProp.GETCONTENTLENGTH);
      CreationDateProp creationDateProperty = (CreationDateProp) response.getProperty(WebDavProp.CREATIONDATE);
      CreatorDisplayNameProp creatorDisplayName =
               (CreatorDisplayNameProp) response.getProperty(WebDavProp.CREATORDISPLAYNAME);

      String lineStr = displayNameProperty.getDisplayName();
      while (lineStr.length() < NAME_LEN)
      {
         lineStr += " ";
      }

      if (contentLengthProperty != null)
      {
         lineStr += contentLengthProperty.getContentLength();
      }

      while (lineStr.length() < SIZE_LEN)
      {
         lineStr += " ";
View Full Code Here


      while (fileItem.length() < NAME_LEN)
      {
         fileItem += " ";
      }

      ContentLengthProp contentLengthProperty = (ContentLengthProp) response.getProperty(WebDavProp.GETCONTENTLENGTH);
      if (contentLengthProperty != null)
      {

         long contentLength = contentLengthProperty.getContentLength();

         if (contentLength < 1024)
         {
            fileItem += contentLength;
         }
View Full Code Here

TOP

Related Classes of org.exoplatform.applications.ooplugin.props.ContentLengthProp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.