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

org.simpleflatmapper.lightningcsv.parser.CharBuffer Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

The newest version!
package org.simpleflatmapper.lightningcsv.parser;

import java.io.IOException;

public abstract class CharBuffer {

	public char[] buffer;
	public int bufferSize;

	public int cellStartMark;
	public int rowStartMark;

	public CharBuffer(char[] buffer, final int bufferSize) {
		this.buffer = buffer;
		this.bufferSize = bufferSize;
	}

	public CharBuffer(char[] buffer, final int from, final int to) {
		this.buffer = buffer;
		this.bufferSize = to;
		this.cellStartMark = rowStartMark = from;
	}

	public abstract boolean isConstant();
	public abstract boolean shiftAndRead(int shiftFrom) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy