public class DefaultNContentTypeResolver extends Object implements NContentTypeResolver
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultNContentTypeResolver.DefaultNContentTypeResolverModel |
CUSTOM_SCORE, DEFAULT_SCORE, UNSUPPORTED_SCORE| Constructor and Description |
|---|
DefaultNContentTypeResolver() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
findContentTypesByExtension(String extension) |
List<String> |
findExtensionsByContentType(String contentType) |
int |
getScore(NScorableContext context) |
DefaultNContentTypeResolver.DefaultNContentTypeResolverModel |
model() |
NScoredCallable<String> |
probeContentType(byte[] bytes) |
NScoredCallable<String> |
probeContentType(NPath path) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidScore, query, querypublic 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 int getScore(NScorableContext context)
getScore in interface NComponentgetScore in interface NScorablepublic DefaultNContentTypeResolver.DefaultNContentTypeResolverModel model()
Copyright © 2025 vpc open source initiative. All rights reserved.