-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dictionary file Loading support from jar #134
Comments
I've received requests to read the dictionary from the jar, and I know how to do it, but I haven't come up with a spec for the config file and a clean implementation, so please wait a little longer. |
For Example :
|
Dear, any update on the above request to support in the newer version . |
Dear, any update or plan on the above request to support in the newer version . |
Actually, it should work with the version in |
if the Dictionary file is kept inside some resource jar , then the MMap.class cannot read the Dictionary file,
so can this be modified to support BinaryDictionary.class.getClassLoader().getResourceAsStream("system_core.dic ")
Then from InputStream we can get ByteBuffer using below logic
ByteBuffer byteBuffer = ByteBuffer.allocate(initialStream.available());
ReadableByteChannel channel = newChannel(initialStream);
IOUtils.readFully(channel, byteBuffer);
The text was updated successfully, but these errors were encountered: