public static BidiMap loadMapping(File inputFile) throws IOException {
  ObjectInputStream inputStream=new ObjectInputStream(new FileInputStream(inputFile));
  try {
    return (BidiMap)inputStream.readObject();
  }
 catch (  ClassNotFoundException e) {
    throw new IOException(e);
  }
 finally {
    IOUtils.closeQuietly(inputStream);
  }
}

public static BidiMap loadMapping ( File inputFile ) throws IOException { ObjectInputStream inputStream = new ObjectInputStream ( new FileInputStream ( inputFile ) ) ; try { return ( BidiMap ) inputStream . readObject ( ) ; } catch ( ClassNotFoundException e ) { throw new IOException ( e ) ; } finally { IOUtils . closeQuietly ( inputStream ) ; } }
loads a serialized bidimap from file
