/** * Scans the decimal part of a number. */ protected int dotNumber() throws IOException { loop: for (;;) { switch (nextChar()) { default: break loop; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': } } return numberUnit(false); }
/** * Scans the decimal part of a number. */ protected int dotNumber() throws IOException { loop: for (;;) { switch (nextChar()) { default: break loop; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': } } return numberUnit(false); }
/** * Scans the decimal part of a number. */ protected int dotNumber() throws IOException { loop: for (;;) { switch (nextChar()) { default: break loop; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': } } return numberUnit(false); }
/** * Creates a new Scanner object. * @param r The reader to scan. */ public Scanner(Reader r) throws ParseException { try { reader = new StreamNormalizingReader(r); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new Scanner object. * @param r The reader to scan. */ public Scanner(Reader r) throws ParseException { try { reader = new StreamNormalizingReader(r); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new Scanner object. * @param r The reader to scan. */ public Scanner(Reader r) throws ParseException { try { reader = new StreamNormalizingReader(r); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new Scanner object. * @param is The input stream to scan. * @param enc The encoding to use to decode the input stream, or null. */ public Scanner(InputStream is, String enc) throws ParseException { try { reader = new StreamNormalizingReader(is, enc); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new Scanner object. * @param s The string to scan. */ public Scanner(String s) throws ParseException { try { reader = new StringNormalizingReader(s); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new Scanner object. * @param is The input stream to scan. * @param enc The encoding to use to decode the input stream, or null. */ public Scanner(InputStream is, String enc) throws ParseException { try { reader = new StreamNormalizingReader(is, enc); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new Scanner object. * @param is The input stream to scan. * @param enc The encoding to use to decode the input stream, or null. */ public Scanner(InputStream is, String enc) throws ParseException { try { reader = new StreamNormalizingReader(is, enc); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new Scanner object. * @param s The string to scan. */ public Scanner(String s) throws ParseException { try { reader = new StringNormalizingReader(s); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Creates a new Scanner object. * @param s The string to scan. */ public Scanner(String s) throws ParseException { try { reader = new StringNormalizingReader(s); current = nextChar(); } catch (IOException e) { throw new ParseException(e); } }
/** * Scans a number. */ protected int number() throws IOException { loop: for (;;) { switch (nextChar()) { case '.': switch (nextChar()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return dotNumber(); } throw new ParseException("character", reader.getLine(), reader.getColumn()); default: break loop; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': } } return numberUnit(true); }
/** * Scans a number. */ protected int number() throws IOException { loop: for (;;) { switch (nextChar()) { case '.': switch (nextChar()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return dotNumber(); } throw new ParseException("character", reader.getLine(), reader.getColumn()); default: break loop; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': } } return numberUnit(true); }
/** * Scans a number. */ protected int number() throws IOException { loop: for (;;) { switch (nextChar()) { case '.': switch (nextChar()) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return dotNumber(); } throw new ParseException("character", reader.getLine(), reader.getColumn()); default: break loop; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': } } return numberUnit(true); }