/** * Returns whether the end of the configuration has been reached. */ private boolean configurationEnd() { return configurationEnd(false); }
/** * Returns whether the end of the configuration has been reached. */ private boolean configurationEnd() { return configurationEnd(false); }
/** * Returns whether the end of the configuration has been reached. */ private boolean configurationEnd() { return configurationEnd(false); }
/** * Returns whether the end of the configuration has been reached. */ private boolean configurationEnd() { return configurationEnd(false); }
private String parseOptionalArgument() throws IOException { // Read the optional argument. readNextWord(); // Didn't the user specify an argument? if (configurationEnd()) { return ""; } String fileName = nextWord; readNextWord(); return fileName; }
private String parseOptionalArgument() throws IOException { // Read the optional argument. readNextWord(); // Didn't the user specify an argument? if (configurationEnd()) { return ""; } String argument = nextWord; readNextWord(); return argument; }
private String parseOptionalArgument() throws IOException { // Read the optional argument. readNextWord(); // Didn't the user specify an argument? if (configurationEnd()) { return ""; } String argument = nextWord; readNextWord(); return argument; }
private String parseOptionalArgument() throws IOException { // Read the optional argument. readNextWord(); // Didn't the user specify an argument? if (configurationEnd()) { return ""; } String argument = nextWord; readNextWord(); return argument; }
private File parseOptionalFile() throws ParseException, IOException { // Read the optional file name. readNextWord(); // Didn't the user specify a file name? if (configurationEnd()) { return new File(""); } // Make sure the file is properly resolved. File file = file(nextWord); readNextWord(); return file; }
/** * 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, boolean expectingAtCharacter) throws ParseException, IOException { readNextWord(); if (configurationEnd(expectingAtCharacter)) { throw new ParseException("Expecting " + expectedDescription + " before " + reader.locationDescription()); } }
private File parseOptionalFile() throws ParseException, IOException { // Read the optional file name. readNextWord(true, true); // Didn't the user specify a file name? if (configurationEnd()) { return Configuration.STD_OUT; } // Make sure the file is properly resolved. File file = file(nextWord); readNextWord(); return file; }
private File parseOptionalFile() throws ParseException, IOException { // Read the optional file name. readNextWord(true, true); // Didn't the user specify a file name? if (configurationEnd()) { return Configuration.STD_OUT; } // Make sure the file is properly resolved. File file = file(nextWord); readNextWord(); return file; }
private File parseOptionalFile() throws ParseException, IOException { // Read the optional file name. readNextWord(true, true); // Didn't the user specify a file name? if (configurationEnd()) { return Configuration.STD_OUT; } // Make sure the file is properly resolved. File file = file(nextWord); readNextWord(); return file; }
/** * 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, boolean isFileName, boolean expectSingleFile, boolean expectingAtCharacter) throws ParseException, IOException { readNextWord(isFileName, expectSingleFile); if (configurationEnd(expectingAtCharacter)) { throw new ParseException("Expecting " + expectedDescription + " before " + reader.locationDescription()); } }
/** * 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, boolean isFileName, boolean expectSingleFile, boolean expectingAtCharacter) throws ParseException, IOException { readNextWord(isFileName, expectSingleFile); if (configurationEnd(expectingAtCharacter)) { throw new ParseException("Expecting " + expectedDescription + " before " + reader.locationDescription()); } }
/** * 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, boolean isFileName, boolean expectSingleFile, boolean expectingAtCharacter) throws ParseException, IOException { readNextWord(isFileName, expectSingleFile); if (configurationEnd(expectingAtCharacter)) { throw new ParseException("Expecting " + expectedDescription + " before " + reader.locationDescription()); } }
if (configurationEnd() || nextWord.equals(ConfigurationConstants.ANY_ATTRIBUTE_KEYWORD))
if (!configurationEnd() && ConfigurationConstants.OPEN_ARGUMENTS_KEYWORD.equals(nextWord)) if (configurationEnd())
if (!configurationEnd() && ConfigurationConstants.OPEN_ARGUMENTS_KEYWORD.equals(nextWord)) if (configurationEnd())
if (!configurationEnd() && ConfigurationConstants.OPEN_ARGUMENTS_KEYWORD.equals(nextWord)) if (configurationEnd())