scriptella.util
Class UrlPathTokenizer

java.lang.Object
  extended by scriptella.util.UrlPathTokenizer

public class UrlPathTokenizer
extends java.lang.Object

Parses URIs string into tokens and returns reolved URLs as array.

; and : are used as separators. This class is simlar to Ant's PathTokenizer but has 2 important differences:

Version:
1.0
Author:
Fyodor Kupolov

Constructor Summary
UrlPathTokenizer(java.net.URL baseURL)
           
 
Method Summary
 java.net.URL[] split(java.lang.String urls)
          Splits a string with set of URIs into array of URLs resolved relatively to baseURL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlPathTokenizer

public UrlPathTokenizer(java.net.URL baseURL)
Method Detail

split

public java.net.URL[] split(java.lang.String urls)
                     throws java.net.MalformedURLException
Splits a string with set of URIs into array of URLs resolved relatively to baseURL.

Parameters:
urls - not null string with ; or : separated URIs.
Returns:
array of resolved URLs.
Throws:
java.net.MalformedURLException - if urls contain a malformed URI or URL


Copyright © Copyright 2006-2009 The Scriptella Project Team.