- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 40 of file VCardFiles.java.
◆ getCSVRels()
static File [] org.turro.vcard.db.VCardFiles.getCSVRels |
( |
| ) |
|
|
static |
Definition at line 74 of file VCardFiles.java.
76 if(!root.exists()) root.mkdir();
77 return root.listFiles(
new FilenameFilter() {
79 public boolean accept(File dir, String name) {
80 return name.endsWith(
".csvrel");
static final String VCARD_IMPORT_FOLDER
◆ getCSVs()
static File [] org.turro.vcard.db.VCardFiles.getCSVs |
( |
| ) |
|
|
static |
Definition at line 63 of file VCardFiles.java.
65 if(!root.exists()) root.mkdir();
66 return root.listFiles(
new FilenameFilter() {
68 public boolean accept(File dir, String name) {
69 return name.endsWith(
".csv");
◆ getFiles()
static File [] org.turro.vcard.db.VCardFiles.getFiles |
( |
| ) |
|
|
static |
Definition at line 52 of file VCardFiles.java.
54 if(!root.exists()) root.mkdir();
55 return root.listFiles(
new FilenameFilter() {
57 public boolean accept(File dir, String name) {
58 return name.endsWith(
".vcf");
◆ getImportFolder()
static File org.turro.vcard.db.VCardFiles.getImportFolder |
( |
| ) |
|
|
static |
◆ loadCSVRels()
static CSVList org.turro.vcard.db.VCardFiles.loadCSVRels |
( |
| ) |
throws IOException |
|
static |
Definition at line 114 of file VCardFiles.java.
116 CSVList cl =
new CSVList();
117 for(File f : files) {
118 BufferedReader in =
new BufferedReader(
119 new InputStreamReader(
new FileInputStream(f)));
120 cl =
new CSVParser(in).getCSVs();
static File[] getCSVRels()
◆ loadCSVs()
static CSVList org.turro.vcard.db.VCardFiles.loadCSVs |
( |
| ) |
throws IOException |
|
static |
Definition at line 100 of file VCardFiles.java.
102 CSVList cl =
new CSVList();
103 for(File f : files) {
104 BufferedReader in =
new BufferedReader(
105 new InputStreamReader(
new FileInputStream(f)));
106 cl =
new CSVParser(in).getCSVs();
◆ loadVCards()
static VCardList org.turro.vcard.db.VCardFiles.loadVCards |
( |
| ) |
throws IOException |
|
static |
Definition at line 85 of file VCardFiles.java.
87 VCardList vl =
new VCardList();
89 BufferedReader in =
new BufferedReader(
90 new InputStreamReader(
new FileInputStream(f)));
91 List<VCard> l =
new VCardParser(in).getVCards();
◆ saveVCards()
static File org.turro.vcard.db.VCardFiles.saveVCards |
( |
VCardList |
list | ) |
throws IOException |
|
static |
Definition at line 128 of file VCardFiles.java.
129 File root =
new File(ElephantContext.getRealPath(VCARD_EXPORT_FOLDER));
130 if(!root.exists()) root.mkdirs();
131 File output =
new File(ElephantContext.getRealPath(VCARD_EXPORT_FOLDER +
132 "/" + Application.getUser().getId() +
".vcf"));
133 boolean append =
false;
134 for(VCard vCard : list) {
135 Writer out =
new OutputStreamWriter(
new FileOutputStream(output, append));
136 out.write(vCard.getVCard());
◆ VCARD_IMPORT_FOLDER
final String org.turro.vcard.db.VCardFiles.VCARD_IMPORT_FOLDER = "/WEB-INF/vCard/in" |
|
static |
The documentation for this class was generated from the following file: