org.opensolaris.opengrok.analysis.plain
Class PlainAnalyzerFactory

java.lang.Object
  extended by org.opensolaris.opengrok.analysis.FileAnalyzerFactory
      extended by org.opensolaris.opengrok.analysis.plain.PlainAnalyzerFactory

public class PlainAnalyzerFactory
extends FileAnalyzerFactory


Nested Class Summary
 
Nested classes/interfaces inherited from class org.opensolaris.opengrok.analysis.FileAnalyzerFactory
FileAnalyzerFactory.Matcher
 
Field Summary
static PlainAnalyzerFactory DEFAULT_INSTANCE
           
 
Method Summary
protected  FileAnalyzer newAnalyzer()
          Create a new analyzer.
 void writeXref(java.io.InputStream in, java.io.Writer out, Annotation annotation, Project project)
          Write a cross referenced HTML file.
 
Methods inherited from class org.opensolaris.opengrok.analysis.FileAnalyzerFactory
getAnalyzer, getContentType, getGenre, getMagicStrings, getMatchers, getSuffixes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_INSTANCE

public static final PlainAnalyzerFactory DEFAULT_INSTANCE
Method Detail

newAnalyzer

protected FileAnalyzer newAnalyzer()
Description copied from class: FileAnalyzerFactory
Create a new analyzer.

Overrides:
newAnalyzer in class FileAnalyzerFactory
Returns:
an analyzer

writeXref

public void writeXref(java.io.InputStream in,
                      java.io.Writer out,
                      Annotation annotation,
                      Project project)
               throws java.io.IOException
Description copied from class: FileAnalyzerFactory
Write a cross referenced HTML file. Reads the source from in.

Overrides:
writeXref in class FileAnalyzerFactory
Parameters:
in - input source
out - output xref writer
annotation - annotation for the file (could be null)
project - project the file belongs to (could be null)
Throws:
java.io.IOException - if an error occurs