Java: Get URI from FilePath

前端 未结 5 925
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 17:11

I\'ve little knowledge of Java. I need to construct a string representation of an URI from FilePath(String) on windows. Sometimes the inputFilePath

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 17:38

    The argument to new File(String) is a path, not a URI. The part of your post after 'but' is therefore an invalid use of the API.

提交回复
热议问题