Sha256: 81896ef76c50bc70f39a1767f667682d5b3e9bb6a360fc4731ce76d84c8d47f1

Contents?: true

Size: 711 Bytes

Versions: 155

Compression:

Stored size: 711 Bytes

Contents

package org.embulk.spi.util;

public enum Newline
{
    CRLF("\r\n"),
    LF("\n"),
    CR("\r");

    private final String string;
    private final char firstCharCode;
    private final char secondCharCode;

    private Newline(String string)
    {
        this.string = string;
        this.firstCharCode = string.charAt(0);
        if (string.length() > 1) {
            this.secondCharCode = string.charAt(1);
        } else {
            this.secondCharCode = 0;
        }
    }

    public String getString()
    {
        return string;
    }

    public char getFirstCharCode()
    {
        return firstCharCode;
    }

    public char getSecondCharCode()
    {
        return secondCharCode;
    }
}

Version data entries

155 entries across 155 versions & 1 rubygems

Version Path
embulk-0.8.39 embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.39-java embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.38 embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.38-java embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.37 embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.37-java embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.36 embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.36-java embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.35 embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.35-java embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.34 embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.34-java embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.33 embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.33-java embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.32 embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.32-java embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.31 embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.31-java embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.30 embulk-core/src/main/java/org/embulk/spi/util/Newline.java
embulk-0.8.30-java embulk-core/src/main/java/org/embulk/spi/util/Newline.java