support of java.nio.file.Path

support of Path (needed for support of Path in jackson-databind project)

Maybe deprecated usage of file (currently i don't marked methods as deprecated)