-
JSP스트림 IO/텍스트 프로세싱 2011. 9. 8. 09:11BufferedReader br = null;
char[] buff = new char[512];
int len = -1;
try {
br = new BufferedReader(
new InputStreamReader(
application.getResourceAsStream("..") )); // java.io.InputStream
while ( (len = br.read(buff)) != -1) {
out.print(new String(buff, 0, len));
}
} catch(IOException ex) {
out.println(ex.getMessage());
} finally {
if (br != null) try { br.close(); } catch(IOException ex) {}
}