Package railo.commons.io.res.util

Examples of railo.commons.io.res.util.ModeObjectWrap


                isDir=list[i].isDirectory();
                query.setAt(KeyConstants._size,count,new Double(isDir?0:list[i].length()));
                query.setAt(KeyConstants._type,count,isDir?"Dir":"File");
                if(directory.getResourceProvider().isModeSupported()){
                         
                  query.setAt(MODE,count,new ModeObjectWrap(list[i]));
                }
                query.setAt(DATE_LAST_MODIFIED,count,new Date(list[i].lastModified()));
                query.setAt(ATTRIBUTES,count,getFileAttribute(list[i],true));
               
                if(hasMeta){
View Full Code Here


    sct.setEL(KeyConstants._name,file.getName());
    sct.setEL(KeyConstants._size,Long.valueOf(file.length()));
    sct.setEL(KeyConstants._type,file.isDirectory()?"Dir":"File");
    sct.setEL("dateLastModified",new DateTimeImpl(pageContext,file.lastModified(),false));
    sct.setEL("attributes",getFileAttribute(file));
    if(SystemUtil.isUnix())sct.setEL(KeyConstants._mode,new ModeObjectWrap(file));
       
    try {    
      BufferedImage bi = ImageUtil.toBufferedImage(file, null);
            if(bi!=null) {
              Struct img =new StructImpl();
View Full Code Here

TOP

Related Classes of railo.commons.io.res.util.ModeObjectWrap

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.