1 2 24 25 package org.enhydra.util; 26 27 import java.io.File ; 28 import java.io.FileNotFoundException ; 29 import java.io.IOException ; 30 import java.io.OutputStream ; 31 32 import com.lutris.util.Config; 33 import com.lutris.util.KeywordValueException; 34 35 41 public interface ConfigFileInterface { 42 43 46 public static final String TRAILING_COMMENT = "ConfigFileTrailingComment"; 47 48 52 public Config getConfig(); 53 54 61 public String getComment (String key); 62 63 70 public void addEntry(String key, String [] values, String comment) 71 throws KeywordValueException; 72 73 80 public void addEntry(String key, String value, String comment) 81 throws KeywordValueException; 82 83 88 public void removeEntry(String key) throws KeywordValueException; 89 90 95 public File getFile(); 96 97 103 public void setFile(File file); 104 105 111 public void write() throws IOException , FileNotFoundException ; 112 113 118 public void write(OutputStream outputStream); 119 120 } 121 | Popular Tags |