Code example for URI

Methods: toASCIIStringtoString

0
     *            of the properties 
     * @throws IllegalArgumentException 
     *             if the propName is empty, unambiguous or null. 
     */ 
    public void addPropertie( URI propName, List<String> values ) {
        if ( propName == null || "".equals( propName.toASCIIString().trim() ) ) {
            throw new IllegalArgumentException( Messages.getMessage( "WRS_NULL_FEAT_PROP" ) );
        } 
        if ( properties.containsKey( propName ) ) {
            throw new IllegalArgumentException( Messages.getMessage( "WRS_UNAMBIGUOUS_FEAT_PROP", propName.toString() ) );
        } 
        this.properties.put( propName, values );
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java