Commit 36521cff authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added parsing of booleans.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@7869 b35dd754-fafc-0310-a699-88a17e54d16e
parent bd824b1d
......@@ -74,6 +74,10 @@ public class DataForm extends PacketExtension {
}
}
public static boolean parseBoolean(String booleanString) throws ParseException {
return "1".equals(booleanString) || "true".equals(booleanString);
}
/**
* Returns the String representation of an Object to be used as a field value.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment