From: Jeff M. <cus...@us...> - 2002-12-31 14:35:32
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/alt/java/io In directory sc8-pr-cvs1:/tmp/cvs-serv13763/src/jdk/common/alt/java/io Modified Files: StreamFactory.java StreamFactoryImpl.java Log Message: Added OutputStream to StreamFactory Index: StreamFactory.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/alt/java/io/StreamFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- StreamFactory.java 19 Jun 2002 15:26:23 -0000 1.1 +++ StreamFactory.java 31 Dec 2002 14:35:26 -0000 1.2 @@ -2,7 +2,9 @@ import java.io.FileNotFoundException; import java.io.InputStream; +import java.io.OutputStream; public interface StreamFactory { InputStream createInputStream(File aFile) throws FileNotFoundException; + OutputStream createOutputStream(File aFile) throws FileNotFoundException; } Index: StreamFactoryImpl.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/alt/java/io/StreamFactoryImpl.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- StreamFactoryImpl.java 19 Jun 2002 15:26:23 -0000 1.1 +++ StreamFactoryImpl.java 31 Dec 2002 14:35:26 -0000 1.2 @@ -1,11 +1,13 @@ package alt.java.io; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.InputStream; +import java.io.*; public class StreamFactoryImpl implements StreamFactory { public InputStream createInputStream(File aFile) throws FileNotFoundException { return new FileInputStream(aFile.getRealFile()); + } + + public OutputStream createOutputStream(File aFile) throws FileNotFoundException { + return new FileOutputStream(aFile.getRealFile()); } } |