public class DefaultNContentTypeResolver extends Object implements NContentTypeResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultNContentTypeResolver.DefaultNContentTypeResolverModel |
| Constructor and Description |
|---|
DefaultNContentTypeResolver() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
findContentTypesByExtension(String extension) |
List<String> |
findExtensionsByContentType(String contentType) |
DefaultNContentTypeResolver.DefaultNContentTypeResolverModel |
model() |
NScoredCallable<String> |
probeContentType(byte[] bytes) |
NScoredCallable<String> |
probeContentType(NPath path) |
public NScoredCallable<String> probeContentType(NPath path)
probeContentType in interface NContentTypeResolverpublic NScoredCallable<String> probeContentType(byte[] bytes)
probeContentType in interface NContentTypeResolverpublic List<String> findExtensionsByContentType(String contentType)
findExtensionsByContentType in interface NContentTypeResolverpublic List<String> findContentTypesByExtension(String extension)
findContentTypesByExtension in interface NContentTypeResolverpublic DefaultNContentTypeResolver.DefaultNContentTypeResolverModel model()
Copyright © 2026 vpc open source initiative. All rights reserved.