Module io.sf.carte.css4j
Package io.sf.carte.doc.style.css.om
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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.agent.UserAgent
UserAgent.AgentControl
-
Method Summary
Modifier and TypeMethodDescriptionopenConnection
(URL url, long creationDate) Open a URL connection according to the given document creation date.Reads and parses a markup document located at the given URL.void
setDocumentBuilder
(DocumentBuilder docbuilder) Sets aDocumentBuilder
to be used when fetching a document from a URL.void
setEntityResolver
(EntityResolver resolver) Sets the entity resolver to be used when parsing documents.Methods inherited from class io.sf.carte.doc.agent.AbstractUserAgent
authenticationCredentials, createConnection, getAgentControl, getAuthenticationCredentials, getCookieConfig, getCookies, getOriginPolicy, getParserFlags, getProperty, isVisitedURL, readCookies, setConnectionTimeout, setOriginPolicy, setProperty, setUseragentId
-
Method Details
-
setDocumentBuilder
Sets aDocumentBuilder
to be used when fetching a document from a URL.- Parameters:
docbuilder
- the document builder.
-
readURL
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
Sets the entity resolver to be used when parsing documents.- Parameters:
resolver
- the entity resolver.
-
openConnection
Description copied from class:AbstractUserAgent
Open a URL connection according to the given document creation date.- Overrides:
openConnection
in classAbstractUserAgent
- 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.
-