|
1 | 1 | package org.ekrich.config.parser
|
2 | 2 |
|
| 3 | +import java.io.Reader |
| 4 | + |
3 | 5 | import org.ekrich.config.ConfigParseOptions
|
4 | 6 | import org.ekrich.config.impl.Parseable
|
5 |
| -import java.io.File |
6 |
| -import java.io.Reader |
7 | 7 |
|
8 | 8 | /**
|
9 | 9 | * Shared Factory methods for creating
|
@@ -41,36 +41,6 @@ abstract class ConfigDocumentFactoryShared {
|
41 | 41 | def parseReader(reader: Reader): ConfigDocument =
|
42 | 42 | parseReader(reader, ConfigParseOptions.defaults)
|
43 | 43 |
|
44 |
| - /** |
45 |
| - * Parses a file into a ConfigDocument instance. |
46 |
| - * |
47 |
| - * @param file |
48 |
| - * the file to parse |
49 |
| - * @param options |
50 |
| - * parse options to control how the file is interpreted |
51 |
| - * @return |
52 |
| - * the parsed configuration |
53 |
| - * @throws org.ekrich.config.ConfigException |
54 |
| - * on IO or parse errors |
55 |
| - */ |
56 |
| - def parseFile(file: File, options: ConfigParseOptions): ConfigDocument = |
57 |
| - Parseable.newFile(file, options).parseConfigDocument() |
58 |
| - |
59 |
| - /** |
60 |
| - * Parses a file into a ConfigDocument instance as with |
61 |
| - * [[#parseFile(file:java\.io\.File,options:org\.ekrich\.config\.ConfigParseOptions)* parseFile(File, ConfigParseOptions)]] |
62 |
| - * but always uses the default parse options. |
63 |
| - * |
64 |
| - * @param file |
65 |
| - * the file to parse |
66 |
| - * @return |
67 |
| - * the parsed configuration |
68 |
| - * @throws org.ekrich.config.ConfigException |
69 |
| - * on IO or parse errors |
70 |
| - */ |
71 |
| - def parseFile(file: File): ConfigDocument = |
72 |
| - parseFile(file, ConfigParseOptions.defaults) |
73 |
| - |
74 | 44 | /**
|
75 | 45 | * Parses a string which should be valid HOCON or JSON.
|
76 | 46 | *
|
|
0 commit comments