Code Monkey home page Code Monkey logo

object-csv-java's Introduction

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.

object-csv-java's People

Contributors

rjtsahu avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.