Package org.htmlunit.cssparser.parser
Class InputSource
- java.lang.Object
-
- org.htmlunit.cssparser.parser.InputSource
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class InputSource extends java.lang.Object implements java.io.CloseableThe input supported by the parser.
-
-
Constructor Summary
Constructors Constructor Description InputSource(java.io.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()java.lang.StringgetMedia()java.io.ReadergetReader()java.lang.StringgetTitle()java.lang.StringgetURI()voidsetMedia(java.lang.String media)voidsetTitle(java.lang.String title)voidsetURI(java.lang.String uri)
-
-
-
Method Detail
-
getReader
public java.io.Reader getReader()
- Returns:
- the reader if defined
-
getURI
public java.lang.String getURI()
- Returns:
- the uri if set
-
setURI
public void setURI(java.lang.String uri)
- Parameters:
uri- the uri
-
getMedia
public java.lang.String getMedia()
- Returns:
- the media if set
-
setMedia
public void setMedia(java.lang.String media)
- Parameters:
media- the media
-
getTitle
public java.lang.String getTitle()
- Returns:
- the title if set
-
setTitle
public void setTitle(java.lang.String title)
- Parameters:
title- the title
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-