private long parseNoArgument(long value) throws IOException { readNextWord(); return value; }
/** * Creates a new ConfigurationParser for the given word reader and the * given Properties. */ public ConfigurationParser(WordReader reader, Properties properties) throws IOException { this.reader = reader; this.properties = properties; readNextWord(); }
private boolean parseNoArgument(boolean value) throws IOException { readNextWord(); return value; }
/** * Reads the next word of the configuration in the 'nextWord' field. */ private void readNextWord() throws IOException { readNextWord(false, false); }
/** * Reads the next word of the configuration in the 'nextWord' field, * throwing an exception if there is no next word. */ private void readNextWord(String expectedDescription) throws ParseException, IOException { readNextWord(expectedDescription, false); }
private boolean parseNoArgument(boolean value) throws IOException { readNextWord(); return value; }
/** * Reads the next word of the configuration in the 'nextWord' field. */ private void readNextWord() throws IOException { readNextWord(false, false); }
/** * Reads the next word of the configuration in the 'nextWord' field, * throwing an exception if there is no next word. */ private void readNextWord(String expectedDescription) throws ParseException, IOException { readNextWord(expectedDescription, false, false, false); }
/** * Reads the next word of the configuration in the 'nextWord' field. */ private void readNextWord() throws IOException { readNextWord(false, false); }
/** * Creates a new ConfigurationParser for the given word reader and the * given Properties. */ public ConfigurationParser(WordReader reader, Properties properties) throws IOException { this.reader = reader; this.properties = properties; readNextWord(); }
/** * Reads the next word of the configuration in the 'nextWord' field, * throwing an exception if there is no next word. */ private void readNextWord(String expectedDescription) throws ParseException, IOException { readNextWord(expectedDescription, false, false, false); }
private URL parseURL() throws ParseException, IOException { // Read the obligatory file name. readNextWord("file name", true, true, false); // Make sure the file is properly resolved. URL url = url(nextWord); readNextWord(); return url; }
private URL parseURL() throws ParseException, IOException { // Read the obligatory file name. readNextWord("file name", true, true, false); // Make sure the file is properly resolved. URL url = url(nextWord); readNextWord(); return url; }
private void parseBaseDirectoryArgument() throws ParseException, IOException { // Read the base directory name. readNextWord("base directory name"); reader.setBaseDir(file(nextWord)); readNextWord(); }
private void parseBaseDirectoryArgument() throws ParseException, IOException { // Read the base directory name. readNextWord("base directory name", true, true, false); reader.setBaseDir(file(nextWord)); readNextWord(); }
private void parseBaseDirectoryArgument() throws ParseException, IOException { // Read the base directory name. readNextWord("base directory name", true, true, false); reader.setBaseDir(file(nextWord)); readNextWord(); }
/** * Creates a new ConfigurationParser for the given file. */ public ConfigurationParser(File file) throws IOException { reader = new FileWordReader(file); readNextWord(); }
private void parseBaseDirectoryArgument() throws ParseException, IOException { // Read the base directory name. readNextWord("base directory name", true, true, false); reader.setBaseDir(file(nextWord)); readNextWord(); }
/** * Creates a new ConfigurationParser for the given String arguments, * with the given base directory. */ public ConfigurationParser(String[] args, File baseDir) throws IOException { reader = new ArgumentWordReader(args, baseDir); readNextWord(); }
private long parseIncludeArgument(long lastModified) throws ParseException, IOException { // Read the configuation file name. readNextWord("configuration file name"); File file = file(nextWord); reader.includeWordReader(new FileWordReader(file)); readNextWord(); return Math.max(lastModified, file.lastModified()); }