[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Fri Dec 14 16:23:35 UTC 2007


gordonp
Fri Dec 14 11:23:35 EST 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test
In directory dev.open-bio.org:/tmp/cvs-serv23492/src/main/org/biomoby/service/test

Modified Files:
	TestHttpServletRequest.java 
Log Message:
Added support for providing regular InputStreams
moby-live/Java/src/main/org/biomoby/service/test TestHttpServletRequest.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/TestHttpServletRequest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/TestHttpServletRequest.java	2007/12/06 16:41:58	1.2
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/service/test/TestHttpServletRequest.java	2007/12/14 16:23:34	1.3
@@ -38,6 +38,15 @@
 	return servletInputStream;
     }
     
+    public void setInputStream(InputStream is){
+	final InputStream sis = is;
+	servletInputStream = new ServletInputStream(){
+		public int read() throws IOException{
+		    return sis.read();
+		}
+	    };
+    }
+
     public void setInputStream(ServletInputStream sis){
 	servletInputStream = sis;
     }




More information about the MOBY-guts mailing list