19 package org.turro.fieldit;
21 import java.io.BufferedReader;
23 import java.io.FileReader;
24 import java.io.FileWriter;
25 import java.io.IOException;
26 import java.io.PrintWriter;
27 import java.nio.charset.Charset;
28 import java.util.HashSet;
30 import java.util.logging.Level;
31 import java.util.logging.Logger;
32 import java.util.stream.Collectors;
33 import org.turro.string.Strings;
34 import org.turro.contacts.FieldIt;
35 import org.turro.elephant.context.ElephantContext;
43 private static final String FIELDS_ROOT =
"/WEB-INF/fields";
65 Set<String>
set =
new HashSet<>();
68 set = br.lines().filter(line -> !Strings.isBlank(line)).collect(Collectors.toSet());
69 }
catch (IOException ex) {
78 values.forEach((line) -> {
79 if(!Strings.isBlank(line)) pw.println(line);
81 }
catch (IOException ex) {
82 Logger.getLogger(
StringList.class.getName()).log(Level.SEVERE,
null, ex);
92 if(!root.exists()) root.mkdir();
static String getRealPath(String path)
static String logMsg(String msg)
static String getEncoding()
void setField(FieldIt field)
static File getValueFile(FieldIt field)
Set< String > getPossibleValues()
void setPossibleValues(Set< String > values)
void setValue(String value)