int start = skipSpace(address, 0); int index = expectPhrase(address, start); if (index == start && strict) { throw new AddressException("Missing phrase"); } else if (index > start) { start = skipSpace(address, index); } if (address.charAt(start) == ':' && address.charAt(address.length() - 1) == ';') { return parseHeader(address.substring(1, address.length() - 1), strict); } else { return null; }
AddressParser parser = new AddressParser(address, strict ? AddressParser.STRICT : AddressParser.NONSTRICT); return parser.extractGroupList();
    public InternetAddress[] getGroup(boolean strict) throws AddressException {        if (address == null) {            return null;        }        int start = skipSpace(address, 0);        int index = expectPhrase(address, start);        if (index == start && strict) {            throw new AddressException("Missing phrase");        } else if (index > start) {            start = skipSpace(address, index);        }        if (address.charAt(start) == ':' && address.charAt(address.length() - 1) == ';') {            return parseHeader(address.substring(1, address.length() - 1), strict);        } else {            return null;        }    }