Package org.htmlunit.cssparser.parser
Class InputSource
- java.lang.Object
-
- org.htmlunit.cssparser.parser.InputSource
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class InputSource extends Object implements Closeable
The input supported by the parser.- Author:
- Ronald Brill
-
-
Constructor Summary
Constructors Constructor Description InputSource(Reader reader)Create a new input source backed by a reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetMedia()getMedia.ReadergetReader()getReader.StringgetTitle()getTitle.StringgetURI()getURI.voidsetMedia(String media)setMedia.voidsetTitle(String title)setTitle.voidsetURI(String uri)setURI.
-
-
-
Constructor Detail
-
InputSource
public InputSource(Reader reader)
Create a new input source backed by a reader.- Parameters:
reader- the reader
-
-
Method Detail
-
getReader
public Reader getReader()
getReader.
- Returns:
- the reader if defined
-
getURI
public String getURI()
getURI.
- Returns:
- the uri if set
-
setURI
public void setURI(String uri)
setURI.
- Parameters:
uri- the uri
-
getMedia
public String getMedia()
getMedia.
- Returns:
- the media if set
-
setMedia
public void setMedia(String media)
setMedia.
- Parameters:
media- the media
-
getTitle
public String getTitle()
getTitle.
- Returns:
- the title if set
-
setTitle
public void setTitle(String title)
setTitle.
- Parameters:
title- the title
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-