Java读取远程文件

Categories: Java January 31st, 2009 23:27

需求: 读取远程文件

解决方案:

URL romatefile = new URL(textFilePath.getText());

获得InputStreamromatefile.openStream()

 

URL romatefile = new URL(textFilePath.getText());
ParseEmail pe = new ParseEmail();
textOutput.setText(pe.parseEmail(romatefile.openStream()));

<->



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.