- From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 13 Sep 2007 10:18:51 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/util In directory hutz:/tmp/cvs-serv29010/org/w3c/css/util Modified Files: FakeFile.java Log Message: Adding the new parameter content type wich stores the type of the uploaded file Index: FakeFile.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/util/FakeFile.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- FakeFile.java 14 Sep 2005 15:15:32 -0000 1.5 +++ FakeFile.java 13 Sep 2007 10:18:49 -0000 1.6 @@ -15,7 +15,7 @@ */ public class FakeFile { - protected String fileName; + protected String fileName, contentType; /** * The array buffer into which the components of this object are @@ -35,6 +35,7 @@ */ public FakeFile(String fileName) { this.fileName = fileName; + this.contentType = "none"; data = new byte[255]; } @@ -120,4 +121,12 @@ count += len; } + public void setContentType(String mimeType) { + contentType = mimeType; + } + + public String getContentType() { + return contentType; + } + }
Received on Thursday, 13 September 2007 10:18:54 UTC