Package org.htmlunit.cssparser.parser
Class InputSource
java.lang.Object
org.htmlunit.cssparser.parser.InputSource
- All Implemented Interfaces:
Closeable
,AutoCloseable
The input supported by the parser.
- Author:
- Ronald Brill
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
InputSource
Create a new input source backed by a reader.- Parameters:
reader
- the reader
-
-
Method Details
-
getReader
getReader.
- Returns:
- the reader if defined
-
getURI
getURI.
- Returns:
- the uri if set
-
setURI
setURI.
- Parameters:
uri
- the uri
-
getMedia
getMedia.
- Returns:
- the media if set
-
setMedia
setMedia.
- Parameters:
media
- the media
-
getTitle
getTitle.
- Returns:
- the title if set
-
setTitle
setTitle.
- Parameters:
title
- the title
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-