git://git.nikiroo.be
/
jvcard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makefile: fix error at first "make"
[jvcard.git]
/
src
/
be
/
nikiroo
/
jvcard
/
parsers
/
Parser.java
diff --git
a/src/be/nikiroo/jvcard/parsers/Parser.java
b/src/be/nikiroo/jvcard/parsers/Parser.java
index 1fa7c5749805746d58e41f9fae52e575e2cb529d..ceb35dccca75de055917b4050b5df3f912110fb3 100644
(file)
--- a/
src/be/nikiroo/jvcard/parsers/Parser.java
+++ b/
src/be/nikiroo/jvcard/parsers/Parser.java
@@
-28,7
+28,7
@@
public class Parser {
* @throws IOException
* in case of IO error
*/
* @throws IOException
* in case of IO error
*/
- public static List<Contact> parse(File file, Format format)
+ public static List<Contact> parse
Contact
(File file, Format format)
throws IOException {
List<String> lines = null;
throws IOException {
List<String> lines = null;
@@
-46,7
+46,7
@@
public class Parser {
if (lines == null)
return new LinkedList<Contact>();
if (lines == null)
return new LinkedList<Contact>();
- return parse(lines, format);
+ return parse
Contact
(lines, format);
}
/**
}
/**
@@
-59,12
+59,12
@@
public class Parser {
*
* @return the list of elements
*/
*
* @return the list of elements
*/
- public static List<Contact> parse(List<String> lines, Format format) {
+ public static List<Contact> parse
Contact
(List<String> lines, Format format) {
switch (format) {
case VCard21:
switch (format) {
case VCard21:
- return Vcard21Parser.parse(lines);
+ return Vcard21Parser.parse
Contact
(lines);
case Abook:
case Abook:
- return AbookParser.parse(lines);
+ return AbookParser.parse
Contact
(lines);
default:
throw new InvalidParameterException("Unknown format: "
default:
throw new InvalidParameterException("Unknown format: "
@@
-79,10
+79,6
@@
public class Parser {
* @param card
* the card to convert
*
* @param card
* the card to convert
*
- * @param startingBKey
- * the starting BKey number (all the other will follow) or -1 for
- * no BKey
- *
* @param format
* the output {@link Format} to use
*
* @param format
* the output {@link Format} to use
*