|
|
|
@ -15,14 +15,22 @@
|
|
|
|
|
|
|
|
|
|
package com.fr.third.steadystate.css.parser; |
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.lang.reflect.InvocationTargetException; |
|
|
|
|
import java.lang.reflect.Method; |
|
|
|
|
import java.util.Stack; |
|
|
|
|
import java.util.logging.Logger; |
|
|
|
|
|
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSCharsetRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSFontFaceRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSImportRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSMediaRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSOMObject; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSPageRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSRuleListImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSStyleDeclarationImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSStyleRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSStyleSheetImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSUnknownRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSValueImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.MediaListImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.Property; |
|
|
|
|
import com.fr.third.steadystate.css.sac.DocumentHandlerExt; |
|
|
|
|
import com.fr.third.steadystate.css.userdata.UserDataConstants; |
|
|
|
|
import org.w3c.css.sac.CSSException; |
|
|
|
|
import org.w3c.css.sac.ErrorHandler; |
|
|
|
|
import org.w3c.css.sac.InputSource; |
|
|
|
@ -39,20 +47,11 @@ import org.w3c.dom.css.CSSStyleDeclaration;
|
|
|
|
|
import org.w3c.dom.css.CSSStyleSheet; |
|
|
|
|
import org.w3c.dom.css.CSSValue; |
|
|
|
|
|
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSCharsetRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSFontFaceRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSMediaRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSOMObject; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSPageRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSRuleListImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSStyleDeclarationImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSStyleRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSStyleSheetImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSUnknownRuleImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.CSSValueImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.MediaListImpl; |
|
|
|
|
import com.fr.third.steadystate.css.dom.Property; |
|
|
|
|
import com.fr.third.steadystate.css.userdata.UserDataConstants; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.lang.reflect.InvocationTargetException; |
|
|
|
|
import java.lang.reflect.Method; |
|
|
|
|
import java.util.Stack; |
|
|
|
|
import java.util.logging.Logger; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author <a href="mailto:davidsch@users.sourceforge.net">David Schweinsberg</a> |
|
|
|
@ -60,7 +59,7 @@ import com.fr.third.steadystate.css.userdata.UserDataConstants;
|
|
|
|
|
public class CSSOMParser { |
|
|
|
|
|
|
|
|
|
private static final Object LOCK = new Object(); |
|
|
|
|
private static final String DEFAULT_PARSER = "com.steadystate.css.parser.SACParserCSS21"; |
|
|
|
|
private static final String DEFAULT_PARSER = "com.fr.third.steadystate.css.parser.SACParserCSS21"; |
|
|
|
|
|
|
|
|
|
private static String LastFailed_; |
|
|
|
|
|
|
|
|
@ -102,7 +101,7 @@ public class CSSOMParser {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
catch (final Exception e) { |
|
|
|
|
final Logger log = Logger.getLogger("com.steadystate.css"); |
|
|
|
|
final Logger log = Logger.getLogger("com.fr.third.steadystate.css"); |
|
|
|
|
log.warning(e.toString()); |
|
|
|
|
log.warning("using the default 'SACParserCSS21' instead"); |
|
|
|
|
log.throwing("CSSOMParser", "consturctor", e); |
|
|
|
|