org.web3d.vrml.util
Class URLChecker
java.lang.Object
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
|
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 |
URLChecker
public URLChecker()
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 urlsurls - The array of URLs to checkanchor - 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 urlsurls - The array of URLs to check and update if necessary.anchor - true if we should apply extra checks for anchor URLs.
Copyright © 2001 - 2006 Web3D Consortium