com.gargoylesoftware.htmlunit.WebClient.guessContentType()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(155)

本文整理了Java中com.gargoylesoftware.htmlunit.WebClient.guessContentType()方法的一些代码示例,展示了WebClient.guessContentType()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebClient.guessContentType()方法的具体详情如下:
包路径:com.gargoylesoftware.htmlunit.WebClient
类名称:WebClient
方法名:guessContentType

WebClient.guessContentType介绍

[英]Tries to guess the content type of the file.
This utility could be located in a helper class but we can compare this functionality for instance with the "Helper Applications" settings of Mozilla and therefore see it as a property of the "browser".
[中]尝试猜测文件的内容类型。
该实用程序可以位于helper类中,但我们可以将该功能与Mozilla的“helper应用程序”设置进行比较,从而将其视为“浏览器”的属性。

代码示例

代码示例来源:origin: net.disy.htmlunit/htmlunit

final String contentType = guessContentType(file);

代码示例来源:origin: org.jvnet.hudson/htmlunit

final String contentType = guessContentType(file);

代码示例来源:origin: org.jenkins-ci/htmlunit

final String contentType = guessContentType(file);

代码示例来源:origin: net.disy.htmlunit/htmlunit

contentType = getPage().getWebClient().guessContentType(file);

代码示例来源:origin: org.jvnet.hudson/htmlunit

contentType = getPage().getWebClient().guessContentType(file);

代码示例来源:origin: org.jenkins-ci/htmlunit

contentType = getPage().getWebClient().guessContentType(file);

代码示例来源:origin: net.sourceforge.htmlunit/htmlunit

final String contentType = guessContentType(file);

代码示例来源:origin: HtmlUnit/htmlunit

final String contentType = guessContentType(file);

相关文章

WebClient类方法