Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.util
Class URLChecker

java.lang.Object
  extended by org.web3d.vrml.util.URLChecker

public class URLChecker
extends java.lang.Object

A checker of URLs to update them and include a root URL if needed.

Version:
$Revision: 1.12 $
Author:
Justin Couch

Constructor Summary
URLChecker()
           
 
Method Summary
static java.lang.String[] checkURLs(java.lang.String worldURL, java.lang.String[] urls, boolean anchor)
          Check the given array of URLs for relative references and return a new array with the resulting urls.
static void checkURLsInPlace(java.lang.String worldURL, java.lang.String[] urls, boolean anchor)
          Check the given array of URLs for relative references - in place.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLChecker

public URLChecker()
Method Detail

checkURLs

public static java.lang.String[] checkURLs(java.lang.String worldURL,
                                           java.lang.String[] urls,
                                           boolean anchor)
Check the given array of URLs for relative references and return a new array with the resulting urls. If found, add the base URL to it to make them all fully qualified. This will also set the urlRelativeCheck flag to true.

Parameters:
worldURL - the root URL to apply to the urls
urls - The array of URLs to check
anchor - true if we should apply extra checks for anchor URLs.
Returns:
An array of updated URLs.

checkURLsInPlace

public static void checkURLsInPlace(java.lang.String worldURL,
                                    java.lang.String[] urls,
                                    boolean anchor)
Check the given array of URLs for relative references - in place. If found, add the base URL to it to make them all fully qualified. This will also set the urlRelativeCheck flag to true.

Parameters:
worldURL - the root URL to apply to the urls
urls - The array of URLs to check and update if necessary.
anchor - true if we should apply extra checks for anchor URLs.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium