java.lang.Object
allensoft.javacvs.client.DefaultKeywordSubstitutionModeClassifier
- All Implemented Interfaces:
- KeywordSubstitutionModeClassifier
- public class DefaultKeywordSubstitutionModeClassifier
- extends java.lang.Object
- implements KeywordSubstitutionModeClassifier
Classifies the keyword substitution modes for files. It is possible to explicitly
set the keyword mode for a particular file. If this has not been done then it will
determine if the file is binary by comparing it's name against a set of patterns for binary files.
These patterns are stored in the "binaryFiles" setting. If this has not been set then
default patterns will be used for binary files.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prefs
private static java.util.prefs.Preferences prefs
m_Map
private java.util.Map m_Map
DefaultKeywordSubstitutionModeClassifier
public DefaultKeywordSubstitutionModeClassifier()
getKeywordSubstitutionMode
public KeywordSubstitutionMode getKeywordSubstitutionMode(java.io.File file)
- Determines what keyword expansion mode should be used for the specified file. If this has not been
set using
setKeywordSubstitutionMode then this method will detrmine if the file
is binary from a set of patterns defined in a setting called "binaryFiles". If this setting
has not been specified then some default patterns will be used. If it is binary then it will
use the -kb mode otherwise it will use the default mode for text files.
- Specified by:
getKeywordSubstitutionMode in interface KeywordSubstitutionModeClassifier
setKeywordSubstitutionMode
public void setKeywordSubstitutionMode(java.io.File file,
KeywordSubstitutionMode mode)
getDefaultKeywordSubstitutionModeForTextFiles
public static KeywordSubstitutionMode getDefaultKeywordSubstitutionModeForTextFiles()
setDefaultKeywordSubstitutionModeForTextFiles
public static void setDefaultKeywordSubstitutionModeForTextFiles(KeywordSubstitutionMode mode)