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 += " ";
}
if (creationDateProperty != null)
{
lineStr += creationDateProperty.getCreationDate();
}
while (lineStr.length() < CREATED_LEN)
{
lineStr += " ";
}
if (creatorDisplayName != null)
{
lineStr += creatorDisplayName.getCreatorDisplayName();
}
return lineStr;
}