public int read () throws IOException {\r
return stream.ReadByte();\r
}\r
+ \r
+ @Override\r
+ public int read (byte[] b) throws IOException {\r
+ return read(b, 0, b.length);\r
+ }\r
+\r
+ @Override\r
+ public int read (byte[] b, int off, int len) throws IOException {\r
+ return stream.Read(b, off, len);\r
+ }\r
+ \r
}\r
\r
public static class OutputStreamNetStreamImpl extends OutputStream {\r
stream.WriteByte((byte)b);\r
}\r
\r
+ @Override\r
+ public void write (byte[] b) throws IOException {\r
+ write(b, 0, b.length);\r
+ }\r
+\r
+ @Override\r
+ public void write (byte[] b, int off, int len) throws IOException {\r
+ stream.Write(b, off, len);\r
+ }\r
+ \r
}\r
\r
static class IosHttpResponse implements HttpResponse {\r