csv-4180

Simple exporter for Spring State Machine to plantUML format.

Лицензия

Лицензия

Категории

Категории

CSV Данные Data Formats
Группа

Группа

com.nofacepress
Идентификатор

Идентификатор

csv-4180
Последняя версия

Последняя версия

0.2.7
Дата

Дата

Тип

Тип

jar
Описание

Описание

csv-4180
Simple exporter for Spring State Machine to plantUML format.
Ссылка на сайт

Ссылка на сайт

https://github.com/nofacepress/csv4180
Организация-разработчик

Организация-разработчик

No Face Press, LLC
Система контроля версий

Система контроля версий

https://github.com/nofacepress/csv4180

Скачать csv-4180

Как подключить последнюю версию

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

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

CSV4180 - CSV parser based on RFC 4180

Java implementation of a comma separated values, CSV, reader and writer based on RFC 4180. This format is exactly as Excel handles CSV files. CSV4180 is simple to use and understand with a commercial friendly license.

CSV4180 is a Java implementation of a comma separated values (CSV) reader and writer based on RFC 4180. This format is exactly as Excel handles CSV files. CSV4180 is simple to use and understand with a commercial friendly license.

This library is all business with no frills. There are tons of powerful alternatives to this implementation with tons of configuration options, but beware that many do not actually support the format used by Excel even though they may say it does. The main objective of CSV4180 is Excel compatibility, so there is no configuration required. And best of all, it is Apache 2.0 licensed making it truly free, unlike GPL.

This library was created because other libraries had bad licenses, invalid implementations or were unnecessarily complicated. If someone is interested in CSV then they are most likely interested in Excel. "Make it simple stupid" is the motto for CSV4180. CSV is not hard, so there is no need to go overboard when implementing it.

Build status:build_status

Maven Setup

<dependency>
  <groupId>com.nofacepress</groupId>
  <artifactId>csv-4180</artifactId>
  <version>0.2.7</version>
</dependency>

Quick Start: Reading Files

The most intuitive way to to read the CSV file one row at a time. This is done using the convenience method CSVReader::readFields() as shown below.

CSVReader csvReader = new CSVReader(new FileReader(fileName));
ArrayList<String> fields = new ArrayList<String>();
while (!csvReader.isEOF()) {
	csvReader.readFields(fields);
	// ... process row 
}

However, the most direct method reads a field at a time eliminating the need for an ArrayList.

CSVReader csvReader = new CSVReader(new FileReader(fileName));
while (!csvReader.isEOF()) {
	do {
		String field = csvReader.readField();
		// ... process field 
	} while (csvReader.hasMoreFieldsOnLine());
	// ... process row 
}

Quick Start: Writing Files

The most intuitive way is to write the CSV file one row at a time. This is done using the convenience method CSVReader::writeFields() as shown below. This method accepts ArrayList or String[] arguments.

CSVReader csvWriter = new CSVWriter(new FileReader(fileName));
ArrayList<String> fields = new ArrayList<String>();
// ...  
csvWriter.writeFields(fields);
// ...  
csvWriter.close();

However, the most direct method is to write a field at a time calling CSVWriter::newLine() when a row is complete.

CSVReader csvWriter = new CSVWriter(new FileReader(fileName));
String field;
// ...  
csvWriter.writeField(field);
// write more fields  
csvWriter.newLine();
// ...  
csvWriter.writeField(field);
// write more fields  
csvWriter.close();
com.nofacepress

noface.press LLC

Версии библиотеки

Версия
0.2.7
0.2.6