Mercurial Hosting > luan
diff core/src/luan/modules/IoLuan.java @ 202:75750ceb45ee
add LuanState.registry
git-svn-id: https://luan-java.googlecode.com/svn/trunk@203 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 04 Jul 2014 17:18:39 +0000 |
parents | 3dcb0f9bee82 |
children | 99eef1d0e706 |
line wrap: on
line diff
--- a/core/src/luan/modules/IoLuan.java Thu Jul 03 22:42:44 2014 +0000 +++ b/core/src/luan/modules/IoLuan.java Fri Jul 04 17:18:39 2014 +0000 @@ -5,8 +5,6 @@ import java.io.PrintStream; import java.io.Reader; import java.io.Writer; -import java.io.FileReader; -import java.io.FileWriter; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.BufferedInputStream; @@ -313,7 +311,7 @@ public static final class LuanUrl extends LuanIn { private final URL url; - public LuanUrl(String s) throws MalformedURLException { + private LuanUrl(String s) throws MalformedURLException { this.url = new URL(s); } @@ -329,11 +327,11 @@ public static final class LuanFile extends LuanIO { private final File file; - public LuanFile(String name) { + private LuanFile(String name) { this(new File(name)); } - public LuanFile(File file) { + private LuanFile(File file) { this.file = file; } @@ -429,11 +427,11 @@ public static final class LuanSocket extends LuanIO { private final Socket socket; - public LuanSocket(String host,int port) throws IOException { + private LuanSocket(String host,int port) throws IOException { this(new Socket(host,port)); } - public LuanSocket(Socket socket) throws IOException { + private LuanSocket(Socket socket) throws IOException { this.socket = socket; }