Class DOMCSSStyleSheetFactory.WrapperUserAgent

java.lang.Object
io.sf.carte.doc.agent.AbstractUserAgent
io.sf.carte.doc.style.css.om.DOMCSSStyleSheetFactory.WrapperUserAgent
All Implemented Interfaces:
UserAgent, UserAgent.AgentControl, Serializable
Enclosing class:
DOMCSSStyleSheetFactory

public class DOMCSSStyleSheetFactory.WrapperUserAgent extends AbstractUserAgent
See Also:
  • Method Details

    • setDocumentBuilder

      public void setDocumentBuilder(DocumentBuilder docbuilder)
      Sets a DocumentBuilder to be used when fetching a document from a URL.
      Parameters:
      docbuilder - the document builder.
    • readURL

      public CSSDocument readURL(URL url) throws IOException, DocumentException
      Description copied from interface: UserAgent
      Reads and parses a markup document located at the given URL.
      Parameters:
      url - the URL that points to the document.
      Returns:
      the CSSDocument.
      Throws:
      IOException - if there is an I/O problem reading the URL.
      DocumentException - if there is a problem parsing the document.
    • setEntityResolver

      public void setEntityResolver(EntityResolver resolver)
      Sets the entity resolver to be used when parsing documents.
      Parameters:
      resolver - the entity resolver.
    • openConnection

      public URLConnection openConnection(URL url, long creationDate) throws IOException
      Description copied from class: AbstractUserAgent
      Open a URL connection according to the given document creation date.
      Overrides:
      openConnection in class AbstractUserAgent
      Parameters:
      url - the URL to connect to.
      creationDate - the creation date.
      Returns:
      the connection.
      Throws:
      IOException - if an I/O exception occurs opening the connection.