org.nuiton.processor
Class I18nExtractor

java.lang.Object
  extended by org.nuiton.processor.I18nExtractor

public class I18nExtractor
extends Object


Field Summary
protected  I18nFilter filter
           
protected  Map<String,List<String>> store
           
 
Constructor Summary
I18nExtractor()
           
 
Method Summary
 void extract(File[] srcFiles, File outputFile)
          Deprecated. since 1.0.4, prefer use the extract(File[], File, String)
 void extract(File[] srcFiles, File outputFile, String encoding)
          Process input file to target.
static void main(String[] args)
           
protected  void processFile(File srcFile, String encoding)
           
protected  void processLine(String line, File srcFile, int lineNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filter

protected I18nFilter filter

store

protected Map<String,List<String>> store
Constructor Detail

I18nExtractor

public I18nExtractor()
Method Detail

extract

public void extract(File[] srcFiles,
                    File outputFile,
                    String encoding)
             throws IOException
Process input file to target.

Parameters:
srcFiles - source files
outputFile - target file
encoding - encoding used to read and write files
Throws:
IOException - if any io problems
Since:
1.0.4

extract

@Deprecated
public void extract(File[] srcFiles,
                               File outputFile)
             throws IOException
Deprecated. since 1.0.4, prefer use the extract(File[], File, String)

Parameters:
srcFiles - source files
outputFile - target file
Throws:
IOException - if any io problems

processFile

protected void processFile(File srcFile,
                           String encoding)
                    throws IOException
Throws:
IOException

processLine

protected void processLine(String line,
                           File srcFile,
                           int lineNumber)

main

public static void main(String[] args)


Copyright © 2002-2010 CodeLutin. All Rights Reserved.