new DavPropertyNameSet(), false);
@SuppressWarnings("unchecked") // iterator() is documented to return DavProperty instances
Iterator<DavProperty> iter = properties.iterator();
while (iter.hasNext())
{
DavProperty property = iter.next();
attributes.put(property.getName().toString(), property.getValue());
}
properties = getPropertyNames(fileName);
@SuppressWarnings("unchecked") // iterator() is documented to return DavProperty instances
Iterator<DavProperty> iter2 = properties.iterator();
while (iter2.hasNext())
{
DavProperty property = iter2.next();
if (!attributes.containsKey(property.getName()))
{
property = getProperty(fileName, property.getName());
if (property != null)
{
Object name = property.getName();
Object value = property.getValue();
if (name != null && value != null)
{
attributes.put(name.toString(), value);
}
}