Java URL toExternalfile() 方法

2025年3月24日 | 1 分钟阅读

URL 类的 toExternalfile() 方法将此 URL 对象转换为字符串表示形式。通过调用流协议处理程序的此方法,可以创建字符串。

语法

返回值

此对象的字符串表示。

示例 1

输出

http://www.java2s.com/a.htm
.....String repesentation of URL... 
 http://www.java2s.com/a.htm
下一个主题Java URL 类