tiny error message fix
authorzapata <zapata>
Sat, 6 Jul 2002 17:44:01 +0000 (17:44 +0000)
committerzapata <zapata>
Sat, 6 Jul 2002 17:44:01 +0000 (17:44 +0000)
source/mircoders/media/MediaHandlerGeneric.java

index d75686b..1fc91db 100755 (executable)
@@ -55,12 +55,12 @@ public class MediaHandlerGeneric implements MirMedia
                             uploadedData);
             //were done with the data, dereference.
             uploadedData=null;
-            
+
             ent.setValueForProperty("publish_path",datePath+"/"+mediaFname);
             ent.setValueForProperty("size", size.toString());
             ent.update();
         } catch (Exception e) {
-            theLog.printError(e.toString()); 
+            theLog.printError(e.toString());
             throw new MirMediaException(e.toString());
         }
 
@@ -69,7 +69,7 @@ public class MediaHandlerGeneric implements MirMedia
 
     public void produce (Entity ent, Entity mediaTypeEnt )
       throws MirMediaException {
-      
+
       //check first if the media file exist since produced
       //location is also the storage location
       String date = ent.getValue("date");
@@ -78,9 +78,9 @@ public class MediaHandlerGeneric implements MirMedia
       String fname = getStoragePath()+relPath;
       if(! new File(fname).exists())
         throw new MirMediaException("error in MirMedia.produce(): "+relPath+
-                                    "does not exist!");
+                                    " does not exist!");
     }
-      
+
 
     //a method that will probably never get used..
     private byte[] getFile (String fileName)
@@ -90,11 +90,11 @@ public class MediaHandlerGeneric implements MirMedia
         if (size < 0) return null;
 
         byte[] container = new byte[(int)size];
-            
+
         try {
             FileUtil.read(fileName, container);
         } catch (Exception e) {
-            theLog.printError(e.toString()); 
+            theLog.printError(e.toString());
             throw new MirMediaException(e.toString());
         }
 
@@ -136,7 +136,7 @@ public class MediaHandlerGeneric implements MirMedia
 
     public String getIconAlt()
     {
-        return "Generic media"; 
+        return "Generic media";
     }
 
     public SimpleList getURL(Entity ent, Entity mediaTypeEnt)
@@ -167,6 +167,6 @@ public class MediaHandlerGeneric implements MirMedia
     }
 
 }
-        
-        
+
+