commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl FileTypeMap.java
Date Sun, 23 May 2004 11:36:24 GMT
imario      2004/05/23 04:36:24

  Modified:    vfs/src/java/org/apache/commons/vfs/impl FileTypeMap.java
  Log:
  getScheme - mime-type: changed to new contentInfo
  
  Revision  Changes    Path
  1.5       +3 -2      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl/FileTypeMap.java
  
  Index: FileTypeMap.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl/FileTypeMap.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FileTypeMap.java	10 May 2004 20:09:47 -0000	1.4
  +++ FileTypeMap.java	23 May 2004 11:36:24 -0000	1.5
  @@ -56,7 +56,8 @@
       {
           // Check the file's mime type for a match
           final FileContent content = file.getContent();
  -        final String mimeType = (String) content.getAttribute("content-type");
  +        // final String mimeType = (String) content.getAttribute("content-type");
  +        final String mimeType = (String) content.getContentInfo().getContentType();
           if (mimeType != null)
           {
               final String scheme = (String) mimeTypeMap.get(mimeType);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message