Content-Type の取得
import java.io.*;
import java.net.*;
public class tmp {
public static void main(String[] args){
try {
//String url = "http://d.hatena.ne.jp/hmwr_k/20090110/1231563213";
String url = "http://www.nara-tokusan.com/flash/top.swf";
URI uri = new URI(url);
HttpURLConnection connection = (HttpURLConnection)uri.toURL().openConnection();
String contentType = connection.getContentType();
System.out.println(contentType);
} catch(Exception e){
System.err.println(e);
}
}
}