try { cons = jdk12RandomAccessFileAction.class.getConstructor(new Class[] { String.class, String.class}); } catch (Throwable e) { } boolean rw = mode.equals("rw"); if (!rw) mode = "r"; this.mode = mode; this.name = name;
try { return new RandomAccessFile(name, mode); } catch (Throwable e) { return null; }