Code example for URI

Methods: isAbsolute

     * @throws NullPointerException thrown if the specified {@code URI} is 
     *   {@code null} 
    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. 
Experience pair programming with AI  Get Codota for Java