Class AbstractOrigin.InputStreamOrigin

    • Constructor Detail

      • InputStreamOrigin

        public InputStreamOrigin​(java.io.InputStream origin)
        Constructs a new instance for the given origin.
        Parameters:
        origin - The origin.
    • Method Detail

      • getReader

        public java.io.Reader getReader​(java.nio.charset.Charset charset)
                                 throws java.io.IOException
        Description copied from class: AbstractOrigin
        Gets a new Reader on the origin, buffered by default.
        Overrides:
        getReader in class AbstractOrigin<java.io.InputStream,​AbstractOrigin.InputStreamOrigin>
        Parameters:
        charset - the charset to use for decoding
        Returns:
        a new Reader on the origin.
        Throws:
        java.io.IOException - if an I/O error occurs opening the file.