Examples of toFile()


Examples of org.locationtech.udig.catalog.ID.toFile()

public class ShpPropertiesInterceptor implements ServiceInterceptor {

    public void run(IService service){
        if( service instanceof ShpServiceImpl){
            ID id = service.getID();
            File directory = id.toFile().getParentFile();
            File infoFile = new File( directory, id.toBaseFile()+".properties" );
            if( infoFile.exists() ){
               try {
                   FileReader infoReader = new FileReader( infoFile );
                 Properties info = new Properties();
View Full Code Here

Examples of org.syncany.util.NormalizedPath.toFile()

      // Find target path & folder
      NormalizedPath targetPath = findTargetPath();
      NormalizedPath targetFolder = targetPath.getParent();
     
      // Create folder (if necessary) and move file
      if (!targetFolder.toFile().isDirectory()) {
        targetFolder.toFile().mkdirs();
      }
     
      FileUtils.moveFile(cacheFile, targetPath.toFile());
     
View Full Code Here

Examples of org.uberfire.java.nio.file.Path.toFile()

    public void createDirectory( final Path dir,
                                 final FileAttribute<?>... attrs )
            throws UnsupportedOperationException, FileAlreadyExistsException, IOException, SecurityException {
        checkNotNull( "dir", dir );
        final Path realDir = dir.toAbsolutePath();
        if ( realDir.toFile().exists() ) {
            throw new FileAlreadyExistsException( dir.toString() );
        }
        realDir.toFile().mkdirs();
    }
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.