(String path)
| 398 | } // end of GetFieldObject |
| 399 | |
| 400 | public String GetField(String path) { |
| 401 | Object o = GetFieldObject(path); |
| 402 | |
| 403 | if (o != null) { |
| 404 | if (o instanceof Date) { |
| 405 | Long TS = (((Date) o).getTime() / 1000); |
| 406 | return TS.toString(); |
| 407 | } else if (o instanceof Boolean) |
| 408 | return (Boolean) o ? "1" : "0"; |
| 409 | |
| 410 | return o.toString(); |
| 411 | } else |
| 412 | return null; |
| 413 | |
| 414 | } // end of GetField |
| 415 | |
| 416 | public Object MakeBson(String s, int json) { |
| 417 | if (json == 1 || json == 2) { |
no test coverage detected