public abstract class SpoonResourceHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static SpoonFile |
createFile(java.io.File f)
Creates the
SpoonFile corresponding to the given file. |
static SpoonFolder |
createFolder(java.io.File f)
Creates the
SpoonFolder corresponding to the given file. |
static SpoonResource |
createResource(java.io.File f)
Creates the
SpoonResource corresponding to the given file. |
static boolean |
isArchive(java.io.File f)
Tells if the given file is an archive file.
|
static boolean |
isFile(java.io.File f)
Tells if the given file is file (files are not archives).
|
static java.util.List<SpoonResource> |
resources(java.lang.String... paths)
Creates the list of
SpoonResource corresponding to the given
paths (files, folders, archives). |
public static boolean isArchive(java.io.File f)
public static boolean isFile(java.io.File f)
public static java.util.List<SpoonResource> resources(java.lang.String... paths) throws java.io.FileNotFoundException
SpoonResource
corresponding to the given
paths (files, folders, archives).java.io.FileNotFoundException
public static SpoonFile createFile(java.io.File f) throws java.io.FileNotFoundException
SpoonFile
corresponding to the given file.java.io.FileNotFoundException
public static SpoonResource createResource(java.io.File f) throws java.io.FileNotFoundException
SpoonResource
corresponding to the given file.java.io.FileNotFoundException
public static SpoonFolder createFolder(java.io.File f) throws java.io.FileNotFoundException
SpoonFolder
corresponding to the given file.java.io.FileNotFoundException
Copyright © 2007–2021 Inria. All rights reserved.