A java fileAPI