ObjectCsv

General

Category
Free
Tag
CSV
License
Apache License, Version 2.0
Min SDK
18 (Android 4.3 Jelly Bean)
Registered
Mar 9, 2019
Favorites
2
Link
https://github.com/Rjtsahu/object-csv-java
See also
Super CSV
Easy CSV

Additional

Language
Java
Version
N/A
Created
Nov 14, 2018
Updated
Feb 17, 2019 (Retired)
Owner
Rajat Sahu (Rjtsahu)
Contributor
Rajat Sahu (Rjtsahu)
1
Activity
Badge
Generate
Download
Source code

object-csv-java

A simple Library to convert CSV format to Java model.

INSTALL Gradle

Resoving gradle dependency

Paste following in lines in root gradle build.config
repositories {
    maven {
        url  "https://dl.bintray.com/sahurjt/ObjectCsv" 
    }
}
Paste following line in app build.config
implementation 'com.sahurjt:objectpref:1.0.0'

INSTALL Maven

Resoving maven dependency

Paste following in lines in project pom.xml file
<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
          xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
    
    <profiles>
        <profile>
            <repositories>
                <repository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-sahurjt-ObjectCsv</id>
                    <name>bintray</name>
                    <url>https://dl.bintray.com/sahurjt/ObjectCsv</url>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-sahurjt-ObjectCsv</id>
                    <name>bintray-plugins</name>
                    <url>https://dl.bintray.com/sahurjt/ObjectCsv</url>
                </pluginRepository>
            </pluginRepositories>
            <id>bintray</id>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>bintray</activeProfile>
    </activeProfiles>
</settings>
Add maven dependency
 <dependency>
  <groupId>com.sahurjt</groupId>
  <artifactId>objectcsv</artifactId>
  <version>1.0.0</version>
 </dependency>

Complete Example source code

Usage :

CsvHolder<SampleModel> holder = ObjectCsv.getInstance().from(FILE_PATH).with(CsvDelimiter.COMMA)
    .getCsvHolderforClass(SampleModel.class);
Detailed documentation will be updated soon.
Future version will have support to handle file read on android system.