Code example for URISyntaxException

Methods: printStackTrace

0
        if( pdUri == null || pdUri.length() == 0 ) return null;
        try { 
            URI nuri = new URI("planets", pdUri.replaceFirst("planets:", ""), null);
            return nuri;
        } catch (URISyntaxException e) {
            e.printStackTrace();
            return null; 
        } 
    } 
     
    /** 
     * {@inheritDoc} 
     * @see java.lang.Object#equals(java.lang.Object) 
     */ 
    @Override 
    public boolean equals(final Object obj) {
    	System.out.println("HEY Equals called");
        if (!(obj instanceof PDURI)) {
            return false; 
        } 
    	System.out.println("Object is a PDURI");