Interface CharsetFinder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getCharset​(java.lang.String contentType, java.io.InputStream content)
      Returns the character set for the specified content type, or null if it is unable to determine one.
    • Method Detail

      • getCharset

        java.lang.String getCharset​(java.lang.String contentType,
                                    java.io.InputStream content)
                             throws java.io.IOException
        Returns the character set for the specified content type, or null if it is unable to determine one.
        Parameters:
        contentType - the content type (never null)
        content - the content
        Throws:
        java.io.IOException