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

com.adobe.xfa.text.TextCharPropDataIterator Maven / Gradle / Ivy

There is a newer version: 2024.11.18751.20241128T090041Z-241100
Show newest version
package com.adobe.xfa.text;

import com.adobe.xfa.ut.FindBugsSuppress;

/**
 * @exclude from published api.
 */

public class TextCharPropDataIterator implements TextCharPropIterator {
	private int[] mData;
	private int mIndex;
	private int mLength;

	public TextCharPropDataIterator (int[] data) {
		this (data, 0);
	}

	public TextCharPropDataIterator (int[] data, int startIndex) {
		this (data, startIndex, data.length);
	}

	@FindBugsSuppress(code="EI2")
	public TextCharPropDataIterator (int[] data, int startIndex, int length) {
		mData = data;
		mIndex = startIndex;
		mLength = length;
	}

	public int first () {
		mIndex = 0;
		return 0;
	}

	public int next (int index) {
		mIndex = index;
		return next();
	}

	public int next () {
		if (mIndex >= mLength) {
			return TextCharProp.INVALID;
		}

		return interpretData (mData[mIndex++]);
	}

	public int getNextIndex () {
		return mIndex;
	}


	int interpretData (int dataValue) {
		return dataValue;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy