Package org.apache.commons.vfs

Examples of org.apache.commons.vfs.FileContent.removeAttribute()


                if (hasContent()) IOUtil.copy(getContent().getInputStream(), true, fileContent.getOutputStream(), true);
                Iterator it = deletedAttributes.iterator();
                while (it.hasNext()) {
                    String name = (String) it.next();
                    if (fileContent.hasAttribute(name)) {
                        fileContent.removeAttribute(name);
                    } else {
                        fileContent.setAttribute(name, null);
                    }
                }
                Map defaultAttributes = fileInfo.getDefaultAttributes();
View Full Code Here


                while (it.hasNext()) {
                    Map.Entry entry = (Map.Entry) it.next();
                    String name = (String) entry.getKey();
                    Object value = entry.getValue();
                    if (value.equals(defaultAttributes.get(name))) {
                        fileContent.removeAttribute(name);
                    } else {
                        fileContent.setAttribute(name, value);
                    }
                }
                refresh(fileInfo);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.