Skip to content

Commit

Permalink
Revert "Chanage namespace of code"
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoizo authored Aug 11, 2024
1 parent 69e07bb commit cedba17
Show file tree
Hide file tree
Showing 36 changed files with 108 additions and 108 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">kotlin-csv</h1>

<p>
<img alt="Version" src="https://img.shields.io/badge/version-1.10.0-blue.svg?cacheSeconds=2592000" />
<img alt="Version" src="https://img.shields.io/badge/version-1.9.3-blue.svg?cacheSeconds=2592000" />
<a href="https://github.com/jsoizo/kotlin-csv/blob/master/LICENSE">
<img alt="License: Apache License 2.0" src="https://img.shields.io/badge/License-Apache License 2.0-yellow.svg" target="_blank" />
</a>
Expand Down Expand Up @@ -40,15 +40,15 @@ Pure Kotlin CSV Reader/Writer.
for Kotlin DSL

```kotlin
implementation("com.github.doyaaaaaken:kotlin-csv-jvm:1.10.0") // for JVM platform
implementation("com.github.doyaaaaaken:kotlin-csv-js:1.10.0") // for Kotlin JS platform
implementation("com.github.doyaaaaaken:kotlin-csv-jvm:1.9.3") // for JVM platform
implementation("com.github.doyaaaaaken:kotlin-csv-js:1.9.3") // for Kotlin JS platform
```

for Gradle DSL

```groovy
implementation 'com.github.doyaaaaaken:kotlin-csv-jvm:1.10.0' // for JVM platform
implementation 'com.github.doyaaaaaken:kotlin-csv-js:1.10.0' // for Kotlin JS platform
implementation 'com.github.doyaaaaaken:kotlin-csv-jvm:1.9.3' // for JVM platform
implementation 'com.github.doyaaaaaken:kotlin-csv-js:1.9.3' // for Kotlin JS platform
```

### Maven
Expand All @@ -57,20 +57,20 @@ implementation 'com.github.doyaaaaaken:kotlin-csv-js:1.10.0' // for Kotlin JS pl
<dependency>
<groupId>com.github.doyaaaaaken</groupId>
<artifactId>kotlin-csv-jvm</artifactId>
<version>1.10.0</version>
<version>1.9.3</version>
</dependency>
<dependency>
<groupId>com.github.doyaaaaaken</groupId>
<artifactId>kotlin-csv-js</artifactId>
<version>1.10.0</version>
<version>1.9.3</version>
</dependency>
```

### [kscript](https://github.com/holgerbrandl/kscript)

```kotlin
@file:DependsOn("com.github.doyaaaaaken:kotlin-csv-jvm:1.10.0") // for JVM platform
@file:DependsOn("com.github.doyaaaaaken:kotlin-csv-js:1.10.0") // for Kotlin JS platform
@file:DependsOn("com.github.doyaaaaaken:kotlin-csv-jvm:1.9.3") // for JVM platform
@file:DependsOn("com.github.doyaaaaaken:kotlin-csv-js:1.9.3") // for Kotlin JS platform
```

## Examples
Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ plugins {
jacoco
}

group = "com.jsoizo"
version = "1.10.0"
group = "com.github.doyaaaaaken"
version = "1.9.3"

buildscript {
repositories {
Expand Down Expand Up @@ -90,7 +90,7 @@ publishing {
url.set("https://github.com/jsoizo/kotlin-csv")

organization {
name.set("com.jzoizo")
name.set("com.github.doyaaaaaken")
url.set("https://github.com/jsoizo")
}
licenses {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.util.Const
import com.github.doyaaaaaken.kotlincsv.util.Const

/**
* buffered reader which can read line with line terminator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvReaderContext
import com.jzoizo.kotlincsv.dsl.context.ExcessFieldsRowBehaviour
import com.jzoizo.kotlincsv.dsl.context.InsufficientFieldsRowBehaviour
import com.jzoizo.kotlincsv.parser.CsvParser
import com.jzoizo.kotlincsv.util.CSVAutoRenameFailedException
import com.jzoizo.kotlincsv.util.CSVFieldNumDifferentException
import com.jzoizo.kotlincsv.util.logger.Logger
import com.jzoizo.kotlincsv.util.MalformedCSVException
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvReaderContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.ExcessFieldsRowBehaviour
import com.github.doyaaaaaken.kotlincsv.dsl.context.InsufficientFieldsRowBehaviour
import com.github.doyaaaaaken.kotlincsv.parser.CsvParser
import com.github.doyaaaaaken.kotlincsv.util.CSVAutoRenameFailedException
import com.github.doyaaaaaken.kotlincsv.util.CSVFieldNumDifferentException
import com.github.doyaaaaaken.kotlincsv.util.logger.Logger
import com.github.doyaaaaaken.kotlincsv.util.MalformedCSVException

/**
* CSV Reader class, which controls file I/O flow.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvReaderContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvReaderContext

/**
* CSV Reader class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvWriterContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvWriterContext

/**
* CSV Writer class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

interface ICsvFileWriter {
fun writeRow(row: List<Any?>)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

internal interface Reader {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jzoizo.kotlincsv.dsl
package com.github.doyaaaaaken.kotlincsv.dsl

import com.jzoizo.kotlincsv.client.CsvReader
import com.jzoizo.kotlincsv.dsl.context.CsvReaderContext
import com.github.doyaaaaaken.kotlincsv.client.CsvReader
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvReaderContext

/**
* DSL Method which provides `CsvReader`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jzoizo.kotlincsv.dsl
package com.github.doyaaaaaken.kotlincsv.dsl

import com.jzoizo.kotlincsv.client.CsvWriter
import com.jzoizo.kotlincsv.dsl.context.CsvWriterContext
import com.github.doyaaaaaken.kotlincsv.client.CsvWriter
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvWriterContext

/**
* DSL Method which provides `CsvWriter`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.jzoizo.kotlincsv.dsl.context
package com.github.doyaaaaaken.kotlincsv.dsl.context

import com.jzoizo.kotlincsv.util.Const
import com.jzoizo.kotlincsv.util.CsvDslMarker
import com.jzoizo.kotlincsv.util.logger.Logger
import com.jzoizo.kotlincsv.util.logger.LoggerNop
import com.github.doyaaaaaken.kotlincsv.util.Const
import com.github.doyaaaaaken.kotlincsv.util.CsvDslMarker
import com.github.doyaaaaaken.kotlincsv.util.logger.Logger
import com.github.doyaaaaaken.kotlincsv.util.logger.LoggerNop

/**
* Interface for CSV Reader settings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.jzoizo.kotlincsv.dsl.context
package com.github.doyaaaaaken.kotlincsv.dsl.context

import com.jzoizo.kotlincsv.util.CsvDslMarker
import com.github.doyaaaaaken.kotlincsv.util.CsvDslMarker

/**
* DSL method for Quote settings on writing csv.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jzoizo.kotlincsv.dsl.context
package com.github.doyaaaaaken.kotlincsv.dsl.context

import com.jzoizo.kotlincsv.util.Const
import com.jzoizo.kotlincsv.util.CsvDslMarker
import com.github.doyaaaaaken.kotlincsv.util.Const
import com.github.doyaaaaaken.kotlincsv.util.CsvDslMarker

/**
* Interface for CSV Writer settings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jzoizo.kotlincsv.parser
package com.github.doyaaaaaken.kotlincsv.parser

/**
* Csv Parse logic while reading csv
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jzoizo.kotlincsv.parser
package com.github.doyaaaaaken.kotlincsv.parser

import com.jzoizo.kotlincsv.util.CSVParseFormatException
import com.jzoizo.kotlincsv.util.Const
import com.github.doyaaaaaken.kotlincsv.util.CSVParseFormatException
import com.github.doyaaaaaken.kotlincsv.util.Const

/**
* @author doyaaaaaaken
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jzoizo.kotlincsv.util
package com.github.doyaaaaaken.kotlincsv.util

/**
* General purpose Exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jzoizo.kotlincsv.util
package com.github.doyaaaaaken.kotlincsv.util

/**
* Constant variables used in this project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jzoizo.kotlincsv.util
package com.github.doyaaaaaken.kotlincsv.util

/**
* @author doyaaaaaken
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.jzoizo.kotlincsv.util.logger
package com.github.doyaaaaaken.kotlincsv.util.logger

/**
* Logger interface for logging debug statements at runtime.
* Library consumers may provide implementations suiting their needs.
* @see [com.jzoizo.kotlincsv.dsl.context.ICsvReaderContext.logger]
* @see [com.github.doyaaaaaken.kotlincsv.dsl.context.ICsvReaderContext.logger]
*/
interface Logger {
fun info(message: String)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jzoizo.kotlincsv.util.logger
package com.github.doyaaaaaken.kotlincsv.util.logger

/**
* Internal no-operation logger implementation, which does not log anything.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvReaderContext
import com.jzoizo.kotlincsv.dsl.context.ICsvReaderContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvReaderContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.ICsvReaderContext

/**
* CSV Reader class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvWriterContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvWriterContext

/**
* CSV Writer class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

@RequiresOptIn(
message = "This API is experimental. It may be changed in the future without notice.",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvWriterContext
import com.jzoizo.kotlincsv.dsl.context.WriteQuoteMode
import com.jzoizo.kotlincsv.util.Const
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvWriterContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.WriteQuoteMode
import com.github.doyaaaaaken.kotlincsv.util.Const
import java.io.Closeable
import java.io.Flushable
import java.io.IOException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvReaderContext
import com.jzoizo.kotlincsv.dsl.context.ICsvReaderContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvReaderContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.ICsvReaderContext
import java.io.File
import java.io.InputStream
import java.nio.charset.Charset
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvWriterContext
import com.jzoizo.kotlincsv.dsl.context.ICsvWriterContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvWriterContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.ICsvWriterContext
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.io.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import java.io.InputStream
import java.nio.charset.Charset
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import io.kotest.assertions.assertSoftly
import io.kotest.core.spec.style.StringSpec
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.csvWriter
import com.github.doyaaaaaken.kotlincsv.dsl.csvWriter
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.WordSpec
import io.kotest.matchers.shouldBe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.csvReader
import com.jzoizo.kotlincsv.dsl.csvWriter
import com.github.doyaaaaaken.kotlincsv.dsl.csvReader
import com.github.doyaaaaaken.kotlincsv.dsl.csvWriter
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import java.io.File
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.jzoizo.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvReaderContext
import com.jzoizo.kotlincsv.dsl.context.ExcessFieldsRowBehaviour
import com.jzoizo.kotlincsv.dsl.context.InsufficientFieldsRowBehaviour
import com.jzoizo.kotlincsv.dsl.csvReader
import com.jzoizo.kotlincsv.util.CSVFieldNumDifferentException
import com.jzoizo.kotlincsv.util.CSVParseFormatException
import com.jzoizo.kotlincsv.util.Const
import com.jzoizo.kotlincsv.util.MalformedCSVException
package com.github.doyaaaaaken.kotlincsv.client

import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvReaderContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.ExcessFieldsRowBehaviour
import com.github.doyaaaaaken.kotlincsv.dsl.context.InsufficientFieldsRowBehaviour
import com.github.doyaaaaaken.kotlincsv.dsl.csvReader
import com.github.doyaaaaaken.kotlincsv.util.CSVFieldNumDifferentException
import com.github.doyaaaaaken.kotlincsv.util.CSVParseFormatException
import com.github.doyaaaaaken.kotlincsv.util.Const
import com.github.doyaaaaaken.kotlincsv.util.MalformedCSVException
import io.kotest.assertions.assertSoftly
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.WordSpec
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvWriterContext
import com.jzoizo.kotlincsv.dsl.context.WriteQuoteMode
import com.jzoizo.kotlincsv.dsl.csvWriter
import com.jzoizo.kotlincsv.util.Const
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvWriterContext
import com.github.doyaaaaaken.kotlincsv.dsl.context.WriteQuoteMode
import com.github.doyaaaaaken.kotlincsv.dsl.csvWriter
import com.github.doyaaaaaken.kotlincsv.util.Const
import io.kotest.assertions.assertSoftly
import io.kotest.core.spec.style.WordSpec
import io.kotest.matchers.shouldBe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.jzoizo.kotlincsv.client
package com.github.doyaaaaaken.kotlincsv.client

import com.jzoizo.kotlincsv.dsl.context.CsvReaderContext
import com.jzoizo.kotlincsv.util.CSVFieldNumDifferentException
import com.jzoizo.kotlincsv.util.CSVParseFormatException
import com.jzoizo.kotlincsv.util.MalformedCSVException
import com.jzoizo.kotlincsv.util.logger.LoggerNop
import com.github.doyaaaaaken.kotlincsv.dsl.context.CsvReaderContext
import com.github.doyaaaaaken.kotlincsv.util.CSVFieldNumDifferentException
import com.github.doyaaaaaken.kotlincsv.util.CSVParseFormatException
import com.github.doyaaaaaken.kotlincsv.util.MalformedCSVException
import com.github.doyaaaaaken.kotlincsv.util.logger.LoggerNop
import io.kotest.assertions.assertSoftly
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.WordSpec
Expand Down
Loading

0 comments on commit cedba17

Please sign in to comment.