org.nuiton.i18n.plugin.parser.impl
Class ProcessorHelper.AbstractParserProcessor

java.lang.Object
  extended by org.nuiton.processor.Processor
      extended by org.nuiton.i18n.plugin.parser.impl.ProcessorHelper.AbstractParserProcessor
Direct Known Subclasses:
ParserGWTJavaMojo.GWTJavaProcessor, ParserJspMojo.JspFileProcessor, ParserTapestryMojo.TapestryFileProcessor
Enclosing class:
ProcessorHelper

public abstract static class ProcessorHelper.AbstractParserProcessor
extends org.nuiton.processor.Processor

Abstract processor to be used with some smooth logic...

Since:
2.1
Author:
tchemit

Field Summary
protected  boolean verbose
           
 
Fields inherited from class org.nuiton.processor.Processor
inputFilter, outputFilter
 
Constructor Summary
ProcessorHelper.AbstractParserProcessor()
           
 
Method Summary
 void extractKeys(org.nuiton.processor.ProcessorUtil.FragmentExtractor filter, File filein, String encoding, boolean verbose, Set<String> result)
           
abstract  void process(File filein, File fileout, String encoding)
           
protected  void removefragments(org.nuiton.processor.ProcessorUtil.FragmentRemover filter, File filein, File fileout, String encoding, boolean verbose)
           
 void saveKeysToFile(File fileout, Set<String> keys)
           
 void setVerbose(boolean verbose)
           
 
Methods inherited from class org.nuiton.processor.Processor
getReader, process, setInputFilter, setInputFilter, setOutputFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

protected boolean verbose
Constructor Detail

ProcessorHelper.AbstractParserProcessor

public ProcessorHelper.AbstractParserProcessor()
Method Detail

setVerbose

public void setVerbose(boolean verbose)

process

public abstract void process(File filein,
                             File fileout,
                             String encoding)
                      throws IOException
Throws:
IOException

removefragments

protected void removefragments(org.nuiton.processor.ProcessorUtil.FragmentRemover filter,
                               File filein,
                               File fileout,
                               String encoding,
                               boolean verbose)
                        throws IOException
Throws:
IOException

extractKeys

public void extractKeys(org.nuiton.processor.ProcessorUtil.FragmentExtractor filter,
                        File filein,
                        String encoding,
                        boolean verbose,
                        Set<String> result)
                 throws IOException
Throws:
IOException

saveKeysToFile

public void saveKeysToFile(File fileout,
                           Set<String> keys)
                    throws IOException
Throws:
IOException


Copyright © 2007-2011 CodeLutin. All Rights Reserved.