Java 8 URIReferenceException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 URIReferenceException class.

This code example shows how to use the following methods:
        } 
 
        String uriString = uriReference.getURI();
 
        if (uriString == null) {
            throw new URIReferenceException("Cannot resolve a URI of value 'null'.");
        } 
 
        if (uriString != null && ((uriString.length() != 0 && uriString.charAt(0) == '#') || uriString.isEmpty())) {
            // same document uri 
            XMLSignatureFactory fac = XMLSignatureFactory.getInstance("DOM");
            return fac.getURIDereferencer().dereference(uriReference, context);
        } 
 
        throw new URIReferenceException(String.format("URI reference %s not supported", uriString));
    } 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
            if (uri.equals(STYLESHEET) || uri.equals(STYLESHEET_B64)) {
                try { 
                    FileInputStream fis = new FileInputStream(new File
                        (DATA_DIR, uri.substring(uri.lastIndexOf('/'))));
                    return new OctetStreamData(fis,ref.getURI(),ref.getType());
                } catch (Exception e) { throw new URIReferenceException(e); }
            } 
 
            // fallback on builtin deref 
            return defaultUd.dereference(ref, ctx);
        } 
    } 
} 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
            if (uri.equals(STYLESHEET) || uri.equals(STYLESHEET_B64)) {
                try { 
                    FileInputStream fis = new FileInputStream(new File
                        (DATA_DIR, uri.substring(uri.lastIndexOf('/'))));
                    return new OctetStreamData(fis,ref.getURI(),ref.getType());
                } catch (Exception e) { throw new URIReferenceException(e); }
            } 
 
            // fallback on builtin deref 
            return defaultUd.dereference(ref, ctx);
        } 
    } 
} 
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Java 8 URIReferenceException Methods: