134135136137138139140141
return ((Boolean)value).booleanValue(); } if (value instanceof String) { return Boolean.valueOf(value.toString()).booleanValue(); } else { throw new OpenwireException(" cannot read a boolean from " + value.getClass().getName()); } }
150151152153154155156157
return ((Byte)value).byteValue(); } if (value instanceof String) { return Byte.valueOf(value.toString()).byteValue(); } else { throw new OpenwireException(" cannot read a byte from " + value.getClass().getName()); } }
169170171172173174175176
return ((Byte)value).shortValue(); } if (value instanceof String) { return Short.valueOf(value.toString()).shortValue(); } else { throw new OpenwireException(" cannot read a short from " + value.getClass().getName()); } }
182183184185186187188189
throw new NullPointerException(); } if (value instanceof Character) { return ((Character)value).charValue(); } else { throw new OpenwireException(" cannot read a short from " + value.getClass().getName()); } }