Mercurial Hosting > luan
diff core/src/luan/modules/IoLuan.java @ 725:a741a3a33423
add url support for multipart/form-data
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 08 Jun 2016 23:13:10 -0600 |
parents | 647602e8291a |
children | e44e98fe9de8 |
line wrap: on
line diff
--- a/core/src/luan/modules/IoLuan.java Tue Jun 07 16:00:41 2016 -0600 +++ b/core/src/luan/modules/IoLuan.java Wed Jun 08 23:13:10 2016 -0600 @@ -36,6 +36,7 @@ import luan.LuanFunction; import luan.LuanJavaFunction; import luan.LuanException; +import luan.modules.url.LuanUrl; public final class IoLuan { @@ -167,7 +168,7 @@ public static abstract class LuanIn { - abstract InputStream inputStream() throws IOException, LuanException; + public abstract InputStream inputStream() throws IOException, LuanException; public abstract String to_string(); public abstract String to_uri_string(); @@ -241,7 +242,7 @@ public static final LuanIn defaultStdin = new LuanIn() { - @Override InputStream inputStream() { + @Override public InputStream inputStream() { return System.in; } @@ -324,7 +325,7 @@ @Override public void write(int b) {} }; - @Override InputStream inputStream() { + @Override public InputStream inputStream() { return in; } @@ -349,7 +350,7 @@ this.s = s; } - @Override InputStream inputStream() { + @Override public InputStream inputStream() { throw new UnsupportedOperationException(); } @@ -407,7 +408,7 @@ this.file = file; } - @Override InputStream inputStream() throws IOException { + @Override public InputStream inputStream() throws IOException { return new FileInputStream(file); } @@ -621,7 +622,7 @@ this.socket = socket; } - @Override InputStream inputStream() throws IOException { + @Override public InputStream inputStream() throws IOException { return socket.getInputStream(); }