OrangeSignal CSV

OrangeSignal CSV is a very flexible csv (comma-separated values) read and write library for Java.

License

License

Categories

Categories

CSV Data Data Formats
GroupId

GroupId

com.orangesignal
ArtifactId

ArtifactId

orangesignal-csv
Last Version

Last Version

2.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

OrangeSignal CSV
OrangeSignal CSV is a very flexible csv (comma-separated values) read and write library for Java.
Project URL

Project URL

http://orangesignal.github.io/orangesignal-csv/
Project Organization

Project Organization

OrangeSignal.com
Source Code Management

Source Code Management

https://github.com/orangesignal/orangesignal-csv

Download orangesignal-csv

How to add to project

<!-- https://jarcasting.com/artifacts/com.orangesignal/orangesignal-csv/ -->
<dependency>
    <groupId>com.orangesignal</groupId>
    <artifactId>orangesignal-csv</artifactId>
    <version>2.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.orangesignal/orangesignal-csv/
implementation 'com.orangesignal:orangesignal-csv:2.2.1'
// https://jarcasting.com/artifacts/com.orangesignal/orangesignal-csv/
implementation ("com.orangesignal:orangesignal-csv:2.2.1")
'com.orangesignal:orangesignal-csv:jar:2.2.1'
<dependency org="com.orangesignal" name="orangesignal-csv" rev="2.2.1">
  <artifact name="orangesignal-csv" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.orangesignal', module='orangesignal-csv', version='2.2.1')
)
libraryDependencies += "com.orangesignal" % "orangesignal-csv" % "2.2.1"
[com.orangesignal/orangesignal-csv "2.2.1"]

Dependencies

test (10)

Group / Artifact Type Version
junit : junit jar 4.11
com.carrotsearch : junit-benchmarks jar 0.7.2
net.sf.opencsv : opencsv jar 2.3
net.sf.supercsv : super-csv jar 2.2.0
org.springframework : spring-context jar 4.1.0.RELEASE
org.springframework : spring-test jar 4.1.0.RELEASE
org.seasar.container » s2-tiger jar 2.4.47
org.apache.geronimo.specs : geronimo-j2ee_1.4_spec jar 1.0
org.apache.geronimo.specs : geronimo-jta_1.1_spec jar 1.0
log4j : log4j jar 1.2.17

Project Modules

There are no modules declared in this project.

OrangeSignal CSV Build Status

OrangeSignal CSV is a very flexible csv (comma-separated values) read and write library for Java.

The binary distributions includes the following third party software:
jLHA (LHA Library for Java).

Prerequisites

  • Java 1.6+
    OrangeSignal CSV is compiled for Java 1.6

Installation

Maven users

If you are using Maven, simply copy the following dependency into your pom.xml file. The artifact is hosted at Maven Central, and is standalone (no dependencies).

<dependency>
    <groupId>com.orangesignal</groupId>
    <artifactId>orangesignal-csv</artifactId>
    <version>2.2.1</version>
</dependency>

Examples

CSV entity class

@CsvEntity(header = true)
public class Customer {

    @CsvColumn(name = "name")
    public String name;

    @CsvColumn(name = "age")
    public Integer age;

}

example code

CsvConfig cfg = new CsvConfig(',', '"', '"');
cfg.setNullString("NULL");
cfg.setIgnoreLeadingWhitespaces(true);
cfg.setIgnoreTrailingWhitespaces(true);
cfg.setIgnoreEmptyLines(true);
cfg.setIgnoreLinePatterns(Pattern.compile("^#.*$"));
cfg.setVariableColumns(false);

List<Customer> list = new CsvEntityManager()
    .config(cfg)
    .load(Customer.class)
    .filter(new SimpleBeanFilter().in("name", "Smith", "Johnson").gt("age", 21))
    .offset(10)
    .limit(1000)
    .order(BeanOrder.desc("age"))
    .from(reader);

How to use

Sorry, it is japanese only for now.

License

Versions

Version
2.2.1
2.2.0
2.1.0
2.0.0