compact3

# Package java.nio.file.spi

Service-provider classes for the ``java.nio.file`` package.

See: Description

- Class Summary
  Class | Description
  --- | ---
  FileSystemProvider | Service-provider class for file systems.
  FileTypeDetector | A file type detector for probing a file to guess its file type.

## Package java.nio.file.spi Description

Service-provider classes for the ``java.nio.file`` package.

Only developers who are defining new file system providers or file type detectors should need to make direct use of this package.

Unless otherwise noted, passing a `null` argument to a constructor or method in any class or interface in this package will cause a `NullPointerException` to be thrown.

Since:
  1.7

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.