[armedbear-cvs] r12334 - trunk/abcl/src/org/armedbear/lisp

Alessio Stalla astalla at common-lisp.net
Tue Jan 5 14:31:51 UTC 2010


Author: astalla
Date: Tue Jan  5 09:31:50 2010
New Revision: 12334

Log:
Added convenience constructors to Stream.


Modified:
   trunk/abcl/src/org/armedbear/lisp/Stream.java

Modified: trunk/abcl/src/org/armedbear/lisp/Stream.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/Stream.java	(original)
+++ trunk/abcl/src/org/armedbear/lisp/Stream.java	Tue Jan  5 09:31:50 2010
@@ -122,10 +122,18 @@
   {
   }
 
+    public Stream(InputStream stream) {
+	initAsBinaryInputStream(stream);
+    }
+
     public Stream(Reader r) {
 	initAsCharacterInputStream(r);
     }
 
+    public Stream(OutputStream stream) {
+	initAsBinaryOutputStream(stream);
+    }
+
     public Stream(Writer w) {
 	initAsCharacterOutputStream(w);
     }




More information about the armedbear-cvs mailing list