Package gri.tasks.remote.files

Examples of gri.tasks.remote.files.LocalFile


      throw new RuntimeException("Cannot set value of GridpInputFileWidget");
    }
    public Object getValue() {
      File file = super.getFile();
      return new LocalFile(file);
    }
View Full Code Here


    public Object read(Element elem) throws IOException {
  return readFile(elem);
    }
   
    public void writeFile(File file, Element elem) throws IOException {
  LocalFile tFile = (file == null) ?
    null : new LocalFile(file);
  serializer.write(tFile, elem);
    }
View Full Code Here

  //path:
  Element pathElem = elem.getChild("path");
  if (pathElem == null)
      throw new IOException("Invalid LocalFile: Missing required 'path' element");
 
  LocalFile file = new LocalFile(pathElem.getText());
 
  //name:
  Element nameElem = elem.getChild("name");
  if (nameElem != null)
      file.setName(nameElem.getText());
 
  return file;
    }
View Full Code Here

TOP

Related Classes of gri.tasks.remote.files.LocalFile

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.