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

com.orangereading.stardict.io.DictionaryIndexReader Maven / Gradle / Ivy

Go to download

Tools to work with stardict dictionary files. Command line validation and export tool.

The newest version!
package com.orangereading.stardict.io;

import java.io.Closeable;
import java.io.IOException;
import java.util.function.Consumer;

import com.orangereading.stardict.domain.DictionaryIndexItem;
import com.orangereading.stardict.domain.ImmutableDictionaryInfo;

/**
 * 
 * Read StarDict .idx file.
 * 
 * @author sean
 *
 */
public interface DictionaryIndexReader extends Closeable {

	/**
	 * 
	 * Read all index items.
	 * 
	 * @param info
	 *            Dictionary Info
	 * 
	 * @param consumer
	 *            Index item consumer
	 * 
	 * @throws IOException
	 *             IO Exception
	 * 
	 */
	public void eachItem(ImmutableDictionaryInfo info, Consumer consumer) throws IOException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy