|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ejie.r01f.textsearch.FilteredFileTextSearch
Clase de utilidad para buscar texto en un fichero. La búsqueda se pre-filtra a aquel texto delimitado entre dos marcadores uno de principio y otro de fin. El ejemplo típico es el de la búsqueda de enlaces en un fichero html en el que se filtra por < y >
Constructor Summary | |
FilteredFileTextSearch(java.lang.String beginningDelimiter,
java.lang.String endingDelimiter)
Constructor a partir de los delimitadores de comienzo y final |
|
FilteredFileTextSearch(java.lang.String beginningDelimiter,
java.lang.String endingDelimiter,
TextSearchEventListener eventListener)
Constructor a partir del delimitador de inicio y fin así como de un listener de los eventos |
Method Summary | |
void |
doSearch(java.util.Map context,
java.lang.String srcFile,
TextSearch textSearch)
Busca texto en el fichero de origen |
char[] |
processDirective(java.lang.String directiveText,
long index)
Método llamado por el filtro de directivas cuando se encuentra con una directiva. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilteredFileTextSearch(java.lang.String beginningDelimiter, java.lang.String endingDelimiter)
public FilteredFileTextSearch(java.lang.String beginningDelimiter, java.lang.String endingDelimiter, TextSearchEventListener eventListener)
Method Detail |
public char[] processDirective(java.lang.String directiveText, long index)
DirectiveListener
processDirective
in interface DirectiveListener
directiveText
- El texto de la directiva.index
- El índice de comienzo de la directiva dentro del texto.
public void doSearch(java.util.Map context, java.lang.String srcFile, TextSearch textSearch) throws java.io.IOException
FileTextSearch
doSearch
in interface FileTextSearch
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |