nat
Class Nat
java.lang.Object
nat.Nat
public class Nat
- extends java.lang.Object
Constructor Summary |
Nat()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG_SILENCIEUX
public static final int LOG_SILENCIEUX
- See Also:
- Constant Field Values
LOG_NORMAL
public static final int LOG_NORMAL
- See Also:
- Constant Field Values
LOG_VERBEUX
public static final int LOG_VERBEUX
- See Also:
- Constant Field Values
fichierConf
private java.lang.String fichierConf
conf
private ConfigNat conf
sourceMimeType
private java.lang.String sourceMimeType
licence
private static java.lang.String licence
transcription
private Transcription transcription
Nat
public Nat()
getSourceMimeType
public java.lang.String getSourceMimeType()
getFichierConf
public java.lang.String getFichierConf()
getVersionLong
public java.lang.String getVersionLong()
getVersion
public java.lang.String getVersion()
getConf
public ConfigNat getConf()
setConf
public void setConf(ConfigNat cfg)
- Modifie la configuration en cours;
Change le contenu du fichier last.conf pour lui donner le nom du nouveau fichier de conf
- Throws:
java.io.IOException
- Erreur E/S lors de l'écriture du fichier last.conf
java.io.UnsupportedEncodingException
- Encoding UTF8 non supporté
java.io.FileNotFoundException
- fichier last.conf non trouvé
getLicence
public static java.lang.String getLicence(java.lang.String prefixe,
java.lang.String suffixe)
getLastConf
private void getLastConf()
- Récupère le nom du dernier fichier de configuration utilisé (stocké dans le fichier last.conf de la racine)
Si une erreur se produit, on ne change pas la valeur par défaut de fichierConf
- Throws:
java.io.IOException
- Erreur E/S lors de la lecture du fichier last.conf
java.io.UnsupportedEncodingException
- Encoding UTF8 non supporté
java.io.FileNotFoundException
- fichier last.conf non trouvé
fabriqueTranscription
public boolean fabriqueTranscription(java.lang.String source,
java.lang.String cible,
GestionnaireErreur gest)
lanceScenario
public void lanceScenario()
verifFichier
private boolean verifFichier(java.io.File file,
GestionnaireErreur gest)
setMimeTypeSource
private void setMimeTypeSource(java.lang.String source,
GestionnaireErreur gest)
trouveEncodingSource
public java.lang.String trouveEncodingSource(java.lang.String source,
GestionnaireErreur gest)
main
public static void main(java.lang.String[] argv)