(String fileName)
| 22 | outputStream.close(); |
| 23 | } |
| 24 | public static void readFileObject(String fileName) throws Exception { |
| 25 | ObjectInputStream ois = new ObjectInputStream(new FileInputStream(fileName)); |
| 26 | Object o = ois.readObject(); |
| 27 | } |
| 28 | public static void setFieldValue(final Object obj, final String fieldName, final Object value) throws Exception { |
| 29 | final Field field = getField(obj.getClass(), fieldName); |
| 30 | field.setAccessible(true); |