public class Gar extends Object
MyContainer.| Constructor and Description |
|---|
Gar(File file)
Creates an instance from an existing Gar file.
|
Gar(String id)
Creates an instance with a given identifier.
|
| Modifier and Type | Method and Description |
|---|---|
Gar |
addConfiguration(String resourcePath)
Adds a configuration resource to the Gar.
|
Gar |
addConfigurations(String resourcePath)
Adds all the configuration files in a given directory to the Gar.
|
Gar |
addInterface(String resourcePath)
Adds an interface resource to the Gar.
|
Gar |
addInterfaces(String resourcePath)
Adds all the interfaces in a given directory to the Gar.
|
Gar |
addLibraries(String resourcePath)
Adds all the library resources in a given directory to the Gar.
|
Gar |
addLibrary(String resourcePath)
Adds a library resource to the Gar.
|
List<File> |
configuration() |
File |
file() |
String |
id() |
List<File> |
interfaces()
Returns the interface resources in this Gar.
|
long |
lastModified()
Return the most recent modification to the resources in the Gar.
|
List<File> |
libs()
Returns the library resources in this Gar.
|
public Gar(File file)
public Gar(String id)
id - public long lastModified()
public Gar addLibrary(String resourcePath) throws IllegalArgumentException
resourcePath - the path to the resource.IllegalArgumentException - if the resource does not exist or is not readable.public Gar addLibraries(String resourcePath) throws IllegalArgumentException
resourcePath - the path to the directoryIllegalArgumentException - if the directory does not exist or is not readable or writable,
or if the files in it are not readable;public Gar addInterface(String resourcePath) throws IllegalArgumentException
resourcePath - the path to the resource.IllegalArgumentException - if the resource does not exist or is not readable.public Gar addInterfaces(String resourcePath) throws IllegalArgumentException
resourcePath - the path to the directoryIllegalArgumentException - if the directory does not exist or is not readable or writable,
or if the files in it are not readable;public Gar addConfiguration(String resourcePath) throws IllegalArgumentException
resourcePath - the path to the resource.IllegalArgumentException - if the resource does not exist or is not readable.public Gar addConfigurations(String resourcePath) throws IllegalArgumentException
resourcePath - the path to the directoryIllegalArgumentException - if the directory does not exist or is not readable or writable,
or if the files in it are not readable;public String id()
public List<File> interfaces()
public File file()
Copyright © 2017. All Rights Reserved.