A simple, no-depes, library for accessing financial institution information provided by KFTC(금융결제원, 金融決濟院, Korea Financial Telecommunications and Clearings Institute).
Table of Contents
- Build environment
- Apache Maven Coordinates
- Usages
- More output formats
- SQLite DB file
- JSON
- [NDJSON](#ndjsonhttpsgithubcomndjsonndjson-spec)
- Protocol Buffers
- Links
Requires 21
for building while the module targets 11
.
<!-- $ grep '<maven.compiler' pom.xml -->
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
<maven.compiler.release>${maven.compiler.target}</maven.compiler.release>
<maven.compiler.testSource>21</maven.compiler.testSource>
<maven.compiler.testTarget>${maven.compiler.testSource}</maven.compiler.testTarget>
<maven.compiler.testRelease>${maven.compiler.testTarget}</maven.compiler.testRelease>
<dependency>
<groupId>io.github.jinahya</groupId>
<artifactId>kftc-financial-institution-info</artifactId>
<!-- Check the badge above for the latest version -->
</dependency>
Those newInstance()
methods, whenever invoked, load data from resources in the classpath. Callers are recommended to (
or should) cache the result.
class KftcService {
// less than two hundreds values
// the set and its values are all immutable and thread-safe
public static final KftcFinancialInstitutionInfoSet INFO_SET
= KftcFinancialInstitutionInfoSet.newInstance();
// more than 20 thousands values!
// do not load if it's not required
public static final KftcFinancialInstitutionBranchInfoSet BRANCH_INFO_SET
= KftcFinancialInstitutionBranchInfoSet.newInstance();
}
You can generate an SQLite database file, while builds, into db/kftc-financial-institution-info.sqlite3
.
$ mvn -Pdb process-test-resources test
$ ls -l db
See kftc-financial-institution-info.sqlite3.md for more information.
$ mvn -Pjson test
$ ls -l target/*.json
$ mvn -Pndjson test
$ ls -l target/*.ndjson
$ mvn -Pproto test
$ ls -l target/*.*pb
- 금융회사코드 조회 (금융결재원)