com.orangereading.stardict.io.DictionaryIndexReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stardict Show documentation
Show all versions of stardict Show documentation
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;
}