「java」HttpURLConnectionクラスと getInputStream()の使い方

javaコード
private InputStream openInputStream() throws IOException{
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod(“GET");
//ヘッダ設定
con.setRequestProperty(“RANGE", “bytes="+this.startSize+"-“+(this.endSize));
System.out.println(con.getRequestProperty(“RANGE"));
return con.getInputStream();
}

Java

Posted by arkgame