org.mmbase.datatypes.processors
Class FileNameProcessor

java.lang.Object
  extended byorg.mmbase.datatypes.processors.FileNameProcessor
All Implemented Interfaces:
Processor, Serializable

public class FileNameProcessor
extends Object
implements Processor

Some browers provide directory information (IE on Windows), and FileItem.getName() still includes that. This processors removes it.

Since:
MMBase-1.8
Version:
$Id: FileNameProcessor.java,v 1.1 2005/12/21 08:23:39 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Constructor Summary
FileNameProcessor()
           
 
Method Summary
 Object process(Node node, Field field, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileNameProcessor

public FileNameProcessor()
Method Detail

process

public final Object process(Node node,
                            Field field,
                            Object value)
Specified by:
process in interface Processor
Parameters:
node - The node object for which the field must be transformed.
field - The field which is set.
value - The (new) field value.

toString

public String toString()


MMBase build 1.8.1.20060716