Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(218)

Unified Diff: main/classes/core/src/com/ibm/icu/impl/UCharacterName.java

Issue 121870043: ICU ticket #10939: ICU4J optionally read data from .dat and .res (Closed) Base URL: http://source.icu-project.org/repos/icu/icu4j/branches/markus/mapdata/
Patch Set: code review changes r36102 Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: main/classes/core/src/com/ibm/icu/impl/UCharacterName.java
===================================================================
--- main/classes/core/src/com/ibm/icu/impl/UCharacterName.java (revision 36076)
+++ main/classes/core/src/com/ibm/icu/impl/UCharacterName.java (revision 36102)
@@ -8,7 +8,6 @@
package com.ibm.icu.impl;
import java.io.IOException;
-import java.io.InputStream;
import java.nio.ByteBuffer;
import java.util.Locale;
import java.util.MissingResourceException;
@@ -1039,7 +1038,7 @@
/**
* Default name of the name datafile
*/
- private static final String NAME_FILE_NAME_ = ICUResourceBundle.ICU_BUNDLE+"/unames.icu";
+ private static final String FILE_NAME_ = "unames.icu";
/**
* Shift count to retrieve group information
*/
@@ -1168,8 +1167,7 @@
*/
private UCharacterName() throws IOException
{
- InputStream is = ICUData.getRequiredStream(NAME_FILE_NAME_);
- ByteBuffer b = ICUBinary.getByteBufferFromInputStream(is);
+ ByteBuffer b = ICUBinary.getRequiredData(FILE_NAME_);
UCharacterNameReader reader = new UCharacterNameReader(b);
reader.read(this);
}
« no previous file with comments | « main/classes/core/src/com/ibm/icu/impl/UCaseProps.java ('k') | main/classes/core/src/com/ibm/icu/impl/UCharacterProperty.java » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b