Skip to content

Jinnrry/BeatuifulVCF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BeatuifulVCF

a vcf file parser

Install

By maven

<dependency>
    <groupId>cn.xjiangwei.beatuifulvcf</groupId>
    <artifactId>beatuifulvcf</artifactId>
    <version>1.0.1</version>
</dependency>

Demo

import bean.ItemBean;
import beautifulVCF.BeatuifulVcf;
import java.io.FileNotFoundException;
public class test {
    public static void main(String[] args) throws FileNotFoundException {
        
        //  write file
        BeatuifulVcf beatuifulVcf=new BeatuifulVcf();
        ItemBean itemBean=new ItemBean();
        itemBean.setTrueName("Json");
        itemBean.setTelePhone("0816-6065458");
        itemBean.setMobile("13890199242");
        beatuifulVcf.addItem(itemBean);
        beatuifulVcf.write("./test.vcf");
        
        //   read file
        beatuifulVcf=new BeatuifulVcf();
        System.out.println(beatuifulVcf.read("./test.vcf"));
        //  [ItemBean{trueName='Json', mobile='13890199242', workMobile='', telePhone='', email=''}]
    }
}

About

a vcf file parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages