public final class CommandLineUtils extends Object
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
buildPluginLoader(ClassLoader parent,
List<File> files)
Creates a class loader for loading plug-ins.
|
static DmdlSourceRepository |
buildRepository(List<File> files,
Charset cs)
Creates a source repository from the specified file list.
|
static Charset |
parseCharset(String charsetNameOrNull)
Parses a name of charcter-set.
|
static List<File> |
parseFileList(String fileListOrNull)
Parses a string of file list separated by the platform dependent path separator.
|
static Locale |
parseLocale(String localeNameOrNull)
Parses a name of locale.
|
public static Charset parseCharset(String charsetNameOrNull)
charsetNameOrNull
- target name, or null
public static Locale parseLocale(String localeNameOrNull)
localeNameOrNull
- target name, or null
public static List<File> parseFileList(String fileListOrNull)
fileListOrNull
- target string, or null
public static DmdlSourceRepository buildRepository(List<File> files, Charset cs)
files
- target file listcs
- source charset encodingIllegalArgumentException
- if some parameters were null
public static ClassLoader buildPluginLoader(ClassLoader parent, List<File> files)
parent
- parent class loader, or null
to use the system class loaderfiles
- plug-in class paths (*.jar file or class path directory)IllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.