All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.siegmar.fastcsv.writer.Writable Maven / Gradle / Ivy

Go to download

Lightning-fast, dependency-free CSV library that conforms to RFC standards.

There is a newer version: 3.3.1
Show newest version
package de.siegmar.fastcsv.writer;

import java.io.Closeable;
import java.io.Flushable;
import java.io.IOException;

/**
 * This interface extends the basic functionality provided by {@link java.io.Writer}
 * with the addition of the {@link #endRecord()} method.
 */
interface Writable extends Closeable, Flushable {

    /**
     * Writes a single character.
     * @param c the character to write
     * @see java.io.Writer#write(int)
     */
    void write(int c) throws IOException;

    /**
     * Writes a portion of a string.
     * @param value the string to write
     * @param off the offset from which to start writing characters
     * @param len the number of characters to write
     * @see java.io.Writer#write(String, int, int)
     */
    void write(String value, int off, int len) throws IOException;

    /**
     * Writes a portion of an array of characters.
     * @param value the array of characters to write
     * @param off the offset from which to start writing characters
     * @param len the number of characters to write
     * @see java.io.Writer#write(char[], int, int)
     */
    void write(char[] value, int off, int len) throws IOException;

    /**
     * Called to indicate that the current record is complete.
     * @throws IOException if an I/O error occurs
     */
    void endRecord() throws IOException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy