URL test = null;
String inputLine = null;
BufferedReader in = null;
try {
test = new URL("http://localhost/out.php"); // if connection down
} catch (MalformedURLException e) {
inputLine = "test_synntax";
}
try {
in = new BufferedReader(new InputStreamReader(test.openStream()));
...
如何,如果默认的URL解析失败 在好日子指定默认值
问题你不清楚你要做什么吗? –
并请形成适当的问题标题。 –
你在做什么样的工作呢? – PermGenError