Skip to content

Add support for java.nio.Path #124

@rmcdouga

Description

@rmcdouga

The current API still uses java.io.File in several objects. Java 7 provided the java.nio.Path object which has richer semantics than the older java.io class. Without support for the newer class, the API appears dated.

I'd like to see support for using java.nio.Path objects added to the FileDataSource constructors. I'd like to see the internal implementation changed to use the java.nio APIs. The existing constructor that uses the File object can be retained but marked in the javadocs that the Path constructor should be preferred.

Additionally, new methods could be added to the FileTypeMap and MimetypesFileTypeMap classes to accept java.nio.Path objects in addition to the existing methods that accept java.io.File objects. Again, the javadocs for the methods that accept File object should be altered to indicate that the methods that take Path objects should be preferred.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions