Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 845 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 845 Bytes

utf_ken_all.zipユーティリティー

https://www.post.japanpost.jp/zipcode/download.html
https://www.post.japanpost.jp/zipcode/dl/utf-zip.html

<dependency>
  <groupId>jp.try0.zipcode</groupId>
  <artifactId>japanpost-zipcode-core</artifactId>
  <version>0.0.1</version>
</dependency>
ZipcodeCSV csv = ZipcodeCSV.getOrDownload();
Iterable<ZipcodeCSVRow> rows = csv.getRows();

utf_ken_all.zip
↓ Download
java.io.tmpdir
↓ CSV読み込み
Iterable<ZipcodeCSVRow>

ZipcodeCSVDownloader downloader = ZipcodeCSVDownloader.get();
File zipFile = downloader.download();
ZipcodeCSVParser parser = new ZipcodeCSVParser(zipFile);
Iterable<ZipcodeCSVRow> rows = parser.parse();