Update of /var/cvs/src/org/mmbase/datatypes/handlers/html
In directory james.mmbase.org:/tmp/cvs-serv27249
Modified Files:
BinaryHandler.java
Log Message:
added a toString
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/datatypes/handlers/html
Index: BinaryHandler.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/datatypes/handlers/html/BinaryHandler.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- BinaryHandler.java 17 Apr 2009 20:31:08 -0000 1.3
+++ BinaryHandler.java 17 Apr 2009 22:09:35 -0000 1.4
@@ -22,7 +22,7 @@
* 'input' tag with type 'file'.
*
* @author Michiel Meeuwissen
- * @version $Id: BinaryHandler.java,v 1.3 2009/04/17 20:31:08 michiel Exp $
+ * @version $Id: BinaryHandler.java,v 1.4 2009/04/17 22:09:35 michiel Exp $
* @since MMBase-1.9.1
*/
@@ -34,7 +34,7 @@
* IF this is set it true the value is not set with {...@link
Node#setValue} but with {...@link
* Node#setInputStreamValue}. The effect of this is that the method
{...@link DataType#cast} is
* avoided. This may be useful if the set-processor expects an
InputStream, and not a
- * byte-array.
+ * byte-array (or another type if this Handler is used on a non-binary
field).
*/
public void setUseSpecificSetter(boolean s) {
useSpecificSetter = s;
@@ -91,5 +91,9 @@
}
+ @Override
+ public String toString() {
+ return super.toString() + (useSpecificSetter ? " (setInputStream)" : "
(setValue)");
+ }
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs