public class FileAnalyzerFactory
extends java.lang.Object
FileAnalyzer
object and
provides information about this type of analyzers.Modifier and Type | Class and Description |
---|---|
protected static interface |
FileAnalyzerFactory.Matcher
Interface for matchers which map file contents to analyzer factories.
|
Modifier | Constructor and Description |
---|---|
protected |
FileAnalyzerFactory(java.lang.String[] names,
java.lang.String[] suffixes,
java.lang.String[] magics,
FileAnalyzerFactory.Matcher matcher,
java.lang.String contentType,
FileAnalyzer.Genre genre)
Construct an instance of
FileAnalyzerFactory . |
Modifier and Type | Method and Description |
---|---|
FileAnalyzer |
getAnalyzer()
Get an analyzer.
|
FileAnalyzer.Genre |
getGenre()
The genre this analyzer factory belongs to.
|
protected FileAnalyzer |
newAnalyzer()
Create a new analyzer.
|
void |
writeXref(java.io.Reader in,
java.io.Writer out,
Definitions defs,
Annotation annotation,
Project project)
Write a cross referenced HTML file.
|
protected FileAnalyzerFactory(java.lang.String[] names, java.lang.String[] suffixes, java.lang.String[] magics, FileAnalyzerFactory.Matcher matcher, java.lang.String contentType, FileAnalyzer.Genre genre)
FileAnalyzerFactory
. This constructor
should be used by subclasses to override default values.names
- list of file names to recognize (possibly null
)suffixes
- list of suffixes to recognize (possibly null
)magics
- list of magic strings to recognize (possibly null
)matcher
- a matcher for this analyzer (possibly null
)contentType
- content type for this analyzer (possibly null
)genre
- the genre for this analyzer (if null
, Genre.DATA
is used)public final FileAnalyzer.Genre getGenre()
public final FileAnalyzer getAnalyzer()
newAnalyzer()
method.FileAnalyzer
instancenewAnalyzer()
protected FileAnalyzer newAnalyzer()
public void writeXref(java.io.Reader in, java.io.Writer out, Definitions defs, Annotation annotation, Project project) throws java.io.IOException
in
.in
- input sourceout
- output xref writerdefs
- definitions for the file (could be null
)annotation
- annotation for the file (could be null
)project
- project the file belongs to (could be null
)java.io.IOException
- if an error occurs