net.sf.vex.css
Class StyleSheetFactory

java.lang.Object
  |
  +--net.sf.vex.css.StyleSheetFactory

public class StyleSheetFactory
extends java.lang.Object

Driver for the creation of StyleSheet objects.


Constructor Summary
StyleSheetFactory()
           
 
Method Summary
static StyleSheet create(java.net.URL url)
          Creates a new StyleSheet object from a URL with SOURCE_DEFAULT.
static StyleSheet create(java.net.URL url, byte source)
          Creates a new StyleSheet object from a URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleSheetFactory

public StyleSheetFactory()
Method Detail

create

public static StyleSheet create(java.net.URL url,
                                byte source)
                         throws java.io.IOException
Creates a new StyleSheet object from a URL.

Parameters:
url - URL from which to read the style sheet.
source - the source of the style sheet, one of StyleSheet.SOURCE_DEFAULT, StyleSheet.SOURCE_AUTHOR, StyleSheet.SOURCE_USER.
Returns:
a newly formed stylesheet.
java.io.IOException

create

public static StyleSheet create(java.net.URL url)
                         throws java.io.IOException
Creates a new StyleSheet object from a URL with SOURCE_DEFAULT.

Parameters:
url - URL from which to read the style sheet.
java.io.IOException