comparison src/luan/lib/IoLib.java @ 136:7e160d2f6d9c

update HttpLib, untested git-svn-id: https://luan-java.googlecode.com/svn/trunk@137 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 11 Jun 2014 09:33:02 +0000
parents 3119326260ea
children 05f8c21160ef
comparison
equal deleted inserted replaced
135:3119326260ea 136:7e160d2f6d9c
91 public static LuanFunction stdin_read_blocks(Integer blockSize) throws IOException { 91 public static LuanFunction stdin_read_blocks(Integer blockSize) throws IOException {
92 int n = blockSize!=null ? blockSize : Utils.bufSize; 92 int n = blockSize!=null ? blockSize : Utils.bufSize;
93 return blocks(System.in,n); 93 return blocks(System.in,n);
94 } 94 }
95 95
96 public static String java_resource_to_url(String path) throws IOException { 96 public static String java_resource_to_url(String path) {
97 URL url = ClassLoader.getSystemResource(path); 97 URL url = ClassLoader.getSystemResource(path);
98 return url==null ? null : url.toString(); 98 return url==null ? null : url.toString();
99 } 99 }
100 100
101 public static LuanTable java_resource(String path) throws IOException { 101 public static LuanTable java_resource(String path) throws IOException {
423 throw luan.exception(e); 423 throw luan.exception(e);
424 } 424 }
425 } 425 }
426 }; 426 };
427 } 427 }
428
429 private void IoLib() {} // never
428 } 430 }