Quantcast
Channel: OKWAVE 閲覧数の多い質問(Java/253)【本日】
Viewing all articles
Browse latest Browse all 68675

URLを指定して、ソース文字列を取得したい

$
0
0
String getSourceText( URL url ) メソッドの実装方法を教えてください。 仕様は単純で、URLからそのページのソースを文字列で取得するものです。 例えば、  String s = getSourceText( new URL("http://www.google.co.jp/") ); とすると、s =  <html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8">  <title>Google</title><style>body,td,a,p,.h{font-family ...... としたいのです。

Viewing all articles
Browse latest Browse all 68675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>