Code example for URI

Methods: isAbsolute

0
     * @throws NullPointerException thrown if the specified {@code URI} is 
     *   {@code null} 
     */ 
    @Override 
    public AsyncDataLink<ImageResult> createDataLink(URI arg) {
        ExceptionHelper.checkNotNullArgument(arg, "arg");
        if (!arg.isAbsolute()) {
            throw new IllegalArgumentException("URI is not absolute");
        } 
 
        return new InputStreamImageLink(executor, new URLStreamOpener(arg), allowedIntermediateRatio);
    } 
 
    /** 
     * Returns the string representation of this {@code AsyncDataQuery} in no 
     * particular format 
     * <P> 
     * This method is intended to be used for debugging only. 
     * 
     * @return the string representation of this object in no particular format. 
     *   This method never returns {@code null}.