org.daisy.streamline.api.identity.package-info Maven / Gradle / Ivy
The newest version!
/**
* Provides an API for identifying file formats. This API
* enhances {@link java.nio.file.Files#probeContentType(java.nio.file.Path)}
* in two ways:
*
* - it supports OSGi runtime context in addition to SPI context
* - it supports sub type identification (commonly used with e.g. XML)
*
*
* Compatibility with {@link java.nio.file.spi.FileTypeDetector}
* In an SPI environment, all implementations of {@link java.nio.file.spi.FileTypeDetector}
* will be available through this API. In an OSGi environment, the default implementation
* of {@link java.nio.file.spi.FileTypeDetector} will be available as
* well as any implementations provided by the package that is using this API.
*
* @author Joel Håkansson
*/
package org.daisy.streamline.api.identity;