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 Details

    • InputSource

      public InputSource(Reader reader)
      Create a new input source backed by a reader.
      Parameters:
      reader - the reader
  • Method Details

    • 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:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException