Java 8 URIDereferencer - 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 URIDereferencer class.

This code example shows how to use the following methods:dereference
                    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
This code example shows how to use the following methods:dereference
                    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
This code example shows how to use the following methods:dereference
        } 
        // :END 
        if (!uri.equals(documentURI)) {
 
            final URIDereferencer uriDereferencer = factory.getURIDereferencer();
            final Data data = uriDereferencer.dereference(uriReference, context);
            if (LOG.isInfoEnabled()) { 
                LOG.info("--> Reference dereferenced: " + uriReference.getURI() + "=" + (data != null) + " | Reference type: " + uriReference.getType());
            } 
            return data;
        } 
        if(document==null) {
 
            return null; 
        } 
        final InputStream octetStream = document.openStream();
        return new OctetStreamData(octetStream);
    } 
} 
3
CodeRank
This code example shows how to use the following methods:dereference
                    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
This code example shows how to use the following methods:dereference
                    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
See Code Examples for Java 8 URIDereferencer Methods: