Mercurial Hosting > luan
diff src/luan/lib/IoLib.java @ 144:2e92f0a6fcac
add Reactionary.luan
git-svn-id: https://luan-java.googlecode.com/svn/trunk@145 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Sun, 15 Jun 2014 06:42:58 +0000 |
parents | fcb81fa2df0d |
children | 90f38a5d0e0a |
line wrap: on
line diff
--- a/src/luan/lib/IoLib.java Fri Jun 13 19:04:05 2014 +0000 +++ b/src/luan/lib/IoLib.java Sun Jun 15 06:42:58 2014 +0000 @@ -212,7 +212,7 @@ public static abstract class LuanIn { abstract InputStream inputStream() throws IOException; - abstract String name(); + public abstract String name(); public String read_text() throws IOException { Reader in = new InputStreamReader(inputStream()); @@ -317,11 +317,11 @@ this.url = new URL(s); } - InputStream inputStream() throws IOException { + @Override InputStream inputStream() throws IOException { return url.openStream(); } - String name() { + @Override public String name() { return url.toString(); } } @@ -333,15 +333,15 @@ this.file = new File(name); } - InputStream inputStream() throws IOException { + @Override InputStream inputStream() throws IOException { return new FileInputStream(file); } - OutputStream outputStream() throws IOException { + @Override OutputStream outputStream() throws IOException { return new FileOutputStream(file); } - String name() { + @Override public String name() { return file.toString(); } } @@ -374,15 +374,15 @@ this.socket = socket; } - InputStream inputStream() throws IOException { + @Override InputStream inputStream() throws IOException { return socket.getInputStream(); } - OutputStream outputStream() throws IOException { + @Override OutputStream outputStream() throws IOException { return socket.getOutputStream(); } - String name() { + @Override public String name() { return socket.toString(); }