src/main/java/org/tinyradius/dictionary/DictionaryParser.java
private static void parseVendorLine(WritableDictionary dictionary, StringTokenizer tok, int lineNum)
        throws IOException {
        if (tok.countTokens() != 2) {
            throw new IOException("syntax error on line " + lineNum);
        }

        int vendorId = Integer.parseInt(tok.nextToken().trim());
        String vendorName = tok.nextToken().trim();

        dictionary.addVendor(vendorId, vendorName);
    }
/**
     * Parses a line containing a vendor declaration.
     */
Parses a line containing a vendor declaration.
Parses a line containing a vendor declaration .
private static void parseVendorLine(WritableDictionary dictionary, StringTokenizer tok, int lineNum)
        throws IOException {
        if (tok.countTokens() != 2) {
            throw new IOException("syntax error on line " + lineNum);
        }
        int vendorId = Integer.parseInt(tok.nextToken().trim());
        String vendorName = tok.nextToken().trim();
        dictionary.addVendor(vendorId, vendorName);
    }
private static void parseVendorLine ( WritableDictionary dictionary , StringTokenizer tok , int lineNum ) throws IOException { if ( tok . countTokens ( ) != 2 ) { throw new IOException ( "syntax error on line " + lineNum ) ; } int vendorId = Integer . parseInt ( tok . nextToken ( ) . trim ( ) ) ; String vendorName = tok . nextToken ( ) . trim ( ) ; dictionary . addVendor ( vendorId , vendorName ) ; }
Parses a line containing a vendor declaration.
Parses a line containing a vendor declaration .