I wasn't sure about the support status of Java external files, so I organized them.
extension | Correspondence | Usage |
---|---|---|
*.csv | ☓ | String for simplicity.split(",",-1)It can be parsed by a method, but exception handling according to the CSV dialect such as double quotation marks and commas in the character string is required. |
*.tsv | △ | String.split("\t",-1)Parse by method. |
*.json | ○ | JSON-P*1orJSON-B *2 is used. |
*.xml | ○ | Use SAX API or DOM API. |
○ ・ ・ ・ A class corresponding to the file is prepared. △ ・ ・ ・ There is no class corresponding to the file, but it can be parsed relatively easily. ☓ ・ ・ ・ Perth is so painful that I don't want to think about it.
Recommended Posts