/** * Creates a new AbstractScanner object. * @param s The string to scan. */ public AbstractScanner(String s) throws ParseException { try { reader = new StringNormalizingReader(s); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new AbstractScanner object. * @param r The reader to scan. */ public AbstractScanner(Reader r) throws ParseException { try { reader = new StreamNormalizingReader(r); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new AbstractScanner object. * @param s The string to scan. */ public AbstractScanner(String s) throws ParseException { try { reader = new StringNormalizingReader(s); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new AbstractScanner object. * @param r The reader to scan. */ public AbstractScanner(Reader r) throws ParseException { try { reader = new StreamNormalizingReader(r); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new AbstractScanner object. * @param s The string to scan. */ public AbstractScanner(String s) throws ParseException { try { reader = new StringNormalizingReader(s); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new AbstractScanner object. * @param is The input stream to scan. * @param enc The encoding to use to decode the input stream, or null. */ public AbstractScanner(InputStream is, String enc) throws ParseException { try { reader = new StreamNormalizingReader(is, enc); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new AbstractScanner object. * @param r The reader to scan. */ public AbstractScanner(Reader r) throws ParseException { try { reader = new StreamNormalizingReader(r); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new AbstractScanner object. * @param is The input stream to scan. * @param enc The encoding to use to decode the input stream, or null. */ public AbstractScanner(InputStream is, String enc) throws ParseException { try { reader = new StreamNormalizingReader(is, enc); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new AbstractScanner object. * @param is The input stream to scan. * @param enc The encoding to use to decode the input stream, or null. */ public AbstractScanner(InputStream is, String enc) throws ParseException { try { reader = new StreamNormalizingReader(is, enc); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Signals an error to the error handler. * @param key The message key in the resource bundle. * @param args The message arguments. */ protected void reportError(String key, Object[] args) throws ParseException { errorHandler.error(new ParseException(createErrorMessage(key, args), reader.getLine(), reader.getColumn())); }
/** * Signals an error to the error handler. * @param key The message key in the resource bundle. * @param args The message arguments. */ protected void reportError(String key, Object[] args) throws ParseException { errorHandler.error(new ParseException(createErrorMessage(key, args), reader.getLine(), reader.getColumn())); }
/** * Signals an error to the error handler. * @param key The message key in the resource bundle. * @param args The message arguments. */ protected void reportError(String key, Object[] args) throws ParseException { errorHandler.error(new ParseException(createErrorMessage(key, args), reader.getLine(), reader.getColumn())); }
/** * Parses the given reader */ public void parse(Reader r) throws ParseException { try { reader = new StreamNormalizingReader(r); doParse(); } catch (IOException e) { errorHandler.error (new ParseException (createErrorMessage("io.exception", null), e)); } }
/** * Parses the given string. */ public void parse(String s) throws ParseException { try { reader = new StringNormalizingReader(s); doParse(); } catch (IOException e) { errorHandler.error (new ParseException (createErrorMessage("io.exception", null), e)); } }
/** * Parses the given string. */ public void parse(String s) throws ParseException { try { reader = new StringNormalizingReader(s); doParse(); } catch (IOException e) { errorHandler.error (new ParseException (createErrorMessage("io.exception", null), e)); } }
/** * Parses the given reader */ public void parse(Reader r) throws ParseException { try { reader = new StreamNormalizingReader(r); doParse(); } catch (IOException e) { errorHandler.error (new ParseException (createErrorMessage("io.exception", null), e)); } }
/** * Parses the given string. */ public void parse(String s) throws ParseException { try { reader = new StringNormalizingReader(s); doParse(); } catch (IOException e) { errorHandler.error (new ParseException (createErrorMessage("io.exception", null), e)); } }
/** * Parses the given reader */ public void parse(Reader r) throws ParseException { try { reader = new StreamNormalizingReader(r); doParse(); } catch (IOException e) { errorHandler.error (new ParseException (createErrorMessage("io.exception", null), e)); } }
/** * Parses the given input stream. If the encoding is null, * ISO-8859-1 is used. */ public void parse(InputStream is, String enc) throws ParseException { try { reader = new StreamNormalizingReader(is, enc); doParse(); } catch (IOException e) { errorHandler.error (new ParseException (createErrorMessage("io.exception", null), e)); } }
/** * Parses the given input stream. If the encoding is null, * ISO-8859-1 is used. */ public void parse(InputStream is, String enc) throws ParseException { try { reader = new StreamNormalizingReader(is, enc); doParse(); } catch (IOException e) { errorHandler.error (new ParseException (createErrorMessage("io.exception", null), e)); } }