while (fileItem.length() < SIZE_LEN)
{
fileItem += " ";
}
CommonProp mimeTypeProperty = (CommonProp) response.getProperty(JCR_MIMETYPE);
if (mimeTypeProperty != null)
{
fileItem += mimeTypeProperty.getValue();
}
if (fileItem.length() > MIMETYPE_SIZE - 1)
{
fileItem = fileItem.substring(0, MIMETYPE_SIZE - 4);
fileItem += "...";
}
while (fileItem.length() < MIMETYPE_SIZE)
{
fileItem += " ";
}
LastModifiedProp lastModifiedProperty = (LastModifiedProp) response.getProperty(WebDavProp.GETLASTMODIFIED);
if (lastModifiedProperty != null)
{
Date d = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss z");
try
{
d = sdf.parse(lastModifiedProperty.getLastModified());
}
catch (Exception e)
{
e.printStackTrace();
}
fileItem += d.toString();
}
while (fileItem.length() < LASTMODIFIED_SIZE)
{
fileItem += " ";
}
CommonProp commentProperty = (CommonProp) response.getProperty(WebDavProp.COMMENT);
if (commentProperty != null)
{
fileItem += commentProperty.getValue();
}
return fileItem;
}