| Modifier and Type | Field and Description |
|---|---|
| private static int | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final char | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static byte[] | |
| public static String | |
| public static String | |
| public static String | getQnameParent(String qname)
Returns the parent qname of |
| public static String | |
| pack-priv static boolean | |
| public static File | |
| public static File | |
| public static String | moduleNameFor(String path)
Given an absolute |
| public static String | Returns: null iffile is not somewhere under the load pathabsolute canonical path to a file (__init__.py for dirs) file)Determines the fully-qualified module name for the specified file. |
| public static String | |
| public static String | |
| public static void |
| gensymCount | back to summary |
|---|---|
| private static int gensymCount | |
| INIT_PY | back to summary |
|---|---|
| private static final String INIT_PY | |
| SEP | back to summary |
|---|---|
| private static final String SEP | |
| SEP_INIT_PY | back to summary |
|---|---|
| private static final String SEP_INIT_PY | |
| SEPCHAR | back to summary |
|---|---|
| private static final char SEPCHAR | |
| UTF_8 | back to summary |
|---|---|
| private static final String UTF_8 | |
| Util | back to summary |
|---|---|
| public Util() | |
| arrayToSortedStringSet | back to summary |
|---|---|
| public static String arrayToSortedStringSet(Collection<String> strings) | |
| arrayToString | back to summary |
|---|---|
| public static String arrayToString(Collection<String> strings) | |
| canonicalize | back to summary |
|---|---|
| public static String canonicalize(String path) Return absolute path for | |
| gensym | back to summary |
|---|---|
| public static String gensym(String base) | |
| getBytesFromFile | back to summary |
|---|---|
| public static byte[] getBytesFromFile(File file) throws IOException | |
| getMD5 | back to summary |
|---|---|
| public static String getMD5(File path) throws Exception | |
| getMD5 | back to summary |
|---|---|
| public static String getMD5(byte[] fileContents) throws Exception | |
| getQnameParent | back to summary |
|---|---|
| public static String getQnameParent(String qname) Returns the parent qname of | |
| getSystemTempDir | back to summary |
|---|---|
| public static String getSystemTempDir() | |
| isReadableFile | back to summary |
|---|---|
| pack-priv static boolean isReadableFile(String path) | |
| joinPath | back to summary |
|---|---|
| public static File joinPath(File dir, String file) | |
| joinPath | back to summary |
|---|---|
| public static File joinPath(String dir, String file) | |
| moduleNameFor | back to summary |
|---|---|
| public static String moduleNameFor(String path) Given an absolute | |
| moduleQname | back to summary |
|---|---|
| public static String moduleQname(String file) Determines the fully-qualified module name for the specified file. A module's qname is a function of the module's absolute path and the sys path; it does not depend on how the module name may have been specified in import statements. The module qname is the relative path of the module under the load path, with slashes converted to dots. | |
| readFile | back to summary |
|---|---|
| public static String readFile(String filename) throws Exception | |
| readFile | back to summary |
|---|---|
| public static String readFile(File path) throws Exception | |
| writeFile | back to summary |
|---|---|
| public static void writeFile(String path, String contents) throws Exception | |