public class FileContentRecognizer extends AbstractFileContentRecognizerTemplate
AbstractFileContentRecognizerTemplate.ContentToLookFor, AbstractFileContentRecognizerTemplate.FileContentRule
Recognizer.DeclarativeDocumentInfo
Constructor and Description |
---|
FileContentRecognizer() |
Modifier and Type | Method and Description |
---|---|
MetaClass<? extends Node> |
recognizeAsMeta(java.net.URL url)
This method allows gets the MetaClass of a recognized
Node . |
fileFrom, recognizeURL
canConvert, create, findRecognizer, getClassForExtension, getContentTypeForExtension, getDeclarativeExtensionToClassMap, getDeclarativeExtensionToContentTypeMap, getDefaultNodeType, getDefaultNodeTypeAsMeta, getDefaultRecognizer, getDocumentInfo, getDocumentInfo, getDocumentInfoForDeclarativeEntries, getExtensionToClassMap, getExtensionToContentTypeMap, getExtensionToMetaClassMap, getLogger, isXmlExtension, mapExtensionToClass, mapExtensionToContentType, mapExtensionToMetaClass, mapExtensionToXML, recognize, recognizeURL, recognizeURL, recognizeURLAsMeta, recognizeURLAsMeta, registerConversion, registerDocumentInfo, registerLowPriorityRecognizer, registerRecognizer, registerRecognizer, sanitizeExtension, setDefaultRecognizer, validate
public MetaClass<? extends Node> recognizeAsMeta(java.net.URL url)
Recognizer
Node
.
This is useful for cases in which the classloader of a metaclass is not the
same as the real classloader of the node class. It may also be useful,
for cases when we need to get the MetaClass of a recognized node without
initializing the node extensions.recognizeAsMeta
in class Recognizer
url
- unique URL
identifying the document.Node
type as a MetaClass
object.