|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.sstringsearch.StringSearchFactory
public class StringSearchFactory
Project: sstringsearch
File: StringSearchFactory.java
Class: StringSearchFactory
Created: 7. mai. 2008
Description:
The main source for obtaining objects for doing both search and search& replace.
Constructor Summary | |
---|---|
StringSearchFactory()
|
Method Summary | |
---|---|
static Replacer |
getReplacer()
Returns a casesensitive Replacer, capable of doing search and replace. |
static Replacer |
getReplacer(boolean caseSensitive)
Returns a Replacer, capable of doing search and replace. |
static Searcher |
getSearcher()
Returns a casesensitive Searcher, capable of doing stringsearch. |
static Searcher |
getSearcher(boolean caseSensitive)
Returns a Searcher, capable of doing stringsearch. |
static Replacer |
loadReplacer(InputStream inputStream)
Loads a serialized Replacer from InputStream. |
static Searcher |
loadSearcher(InputStream inputStream)
Loads a serialized Searcher from InputStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringSearchFactory()
Method Detail |
---|
public static Searcher getSearcher()
public static Searcher getSearcher(boolean caseSensitive)
caseSensitive
- Decides if the Searcher is case sensitive.
public static Replacer getReplacer()
public static Replacer getReplacer(boolean caseSensitive)
caseSensitive
- Decides if the Replacer is case sensitive.
public static Searcher loadSearcher(InputStream inputStream) throws IOException, ClassNotFoundException
inputStream
- The InputStream to read from.
IOException
- of anything goes wrong reading the serialized object.
ClassNotFoundException
- Will probably never happen :-)public static Replacer loadReplacer(InputStream inputStream) throws IOException, ClassNotFoundException
inputStream
- The InputStream to read from.
IOException
- of anything goes wrong reading the serialized object.
ClassNotFoundException
- Will probably never happen :-)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |