Configuration factory for JFC files. *
| Modifier and Type | Class and Description |
|---|---|
| private static class | JFC.
Reads a known configuration file (located into a string, but doesn't parse it until it's being used. |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final Path | |
| private static volatile List | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Configuration | |
| public static Configuration | |
| private static String | |
| public static String | |
| public static List | Returns: list of configurations, not nullReturns list of predefined configurations available. |
| private static List | |
| public static List | |
| public static Configuration | |
| public static String | |
| public static Reader | |
| private static String | |
| public static Path | |
| private static byte[] | |
| private static String |
| BUFFER_SIZE | back to summary |
|---|---|
| private static final int BUFFER_SIZE | |
| JFC_DIRECTORY | back to summary |
|---|---|
| private static final Path JFC_DIRECTORY | |
| knownConfigurations | back to summary |
|---|---|
| private static volatile List<JFC. | |
| MAX_BUFFER_SIZE | back to summary |
|---|---|
| private static final int MAX_BUFFER_SIZE | |
| MAXIMUM_FILE_SIZE | back to summary |
|---|---|
| private static final int MAXIMUM_FILE_SIZE | |
| JFC | back to summary |
|---|---|
| private JFC() | |
| create | back to summary |
|---|---|
| public static Configuration create(String name, Reader reader) throws IOException, ParseException Reads a configuration from a file.
| |
| createKnown | back to summary |
|---|---|
| public static Configuration createKnown(String name) throws IOException, ParseException | |
| exceptionToVerb | back to summary |
|---|---|
| private static String exceptionToVerb(Exception e) | |
| formatException | back to summary |
|---|---|
| public static String formatException(String prefix, Exception e, String input) | |
| getConfigurations | back to summary |
|---|---|
| public static List Returns list of predefined configurations available.
| |
| getKnownConfigurations | back to summary |
|---|---|
| private static List | |
| getPredefined | back to summary |
|---|---|
| public static List | |
| getPredefined | back to summary |
|---|---|
| public static Configuration getPredefined(String name) throws IOException, ParseException | |
| nameFromPath | back to summary |
|---|---|
| public static String nameFromPath(Path file) throws IOException | |
| newReader | back to summary |
|---|---|
| public static Reader newReader(Path sf) throws IOException | |
| nullSafeFileName | back to summary |
|---|---|
| private static String nullSafeFileName(Path file) throws IOException | |
| ofPath | back to summary |
|---|---|
| public static Path ofPath(String path) Create a path to a .jfc file. If the name is predefined name, i.e. "default" or "profile.jfc", it will return the path for the predefined path in the JDK. | |
| read | back to summary |
|---|---|
| private static byte[] read(InputStream source, int initialSize) throws IOException | |
| readContent | back to summary |
|---|---|
| private static String readContent(InputStream source) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private Configuration | |
| private final String | |
| private final String | |
| private final String | |
| private final Path |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Configuration | |
| public String | |
| public boolean | |
| private static String |
| configuration | back to summary |
|---|---|
| private Configuration configuration | |
| content | back to summary |
|---|---|
| private final String content | |
| filename | back to summary |
|---|---|
| private final String filename | |
| name | back to summary |
|---|---|
| private final String name | |
| path | back to summary |
|---|---|
| private final Path path | |
| KnownConfiguration | back to summary |
|---|---|
| public KnownConfiguration(Path knownPath) throws IOException | |
| getConfigurationFile | back to summary |
|---|---|
| public Configuration getConfigurationFile() throws IOException, ParseException | |
| getName | back to summary |
|---|---|
| public String getName() | |
| isNamed | back to summary |
|---|---|
| public boolean isNamed(String name) | |
| readContent | back to summary |
|---|---|
| private static String readContent(Path knownPath) throws IOException | |