URLConnection connection = new URL("http://foo.bar/3afv").openConnection();
String contentType = connection.getHeaderField("Content-Type");
boolean image = contentType.startsWith("image/");
URLConnection connection = new URL("http://foo.bar/3afv").openConnection();
String contentType = connection.getHeaderField("Content-Type");
boolean image = contentType.startsWith("image/");

被折叠的 条评论
为什么被折叠?