Package com.ibm.icu.impl
Class ICUBinary.DatPackageReader
java.lang.Object
com.ibm.icu.impl.ICUBinary.DatPackageReader
- Enclosing class:
ICUBinary
Reads the ICU .dat package file format.
Most methods do not modify the ByteBuffer in any way,
not even its position or other state.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int.dat package data format ID "CmnD".private static final ICUBinary.DatPackageReader.IsAcceptable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static booleanaddBaseName(ByteBuffer bytes, int index, String folder, String suffix, StringBuilder sb, Set<String> names) (package private) static voidaddBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names) private static intbinarySearch(ByteBuffer bytes, CharSequence key) (package private) static ByteBuffergetData(ByteBuffer bytes, CharSequence key) private static intgetDataOffset(ByteBuffer bytes, int index) private static intgetNameOffset(ByteBuffer bytes, int index) private static booleanstartsWithPackageName(ByteBuffer bytes, int start) (package private) static booleanvalidate(ByteBuffer bytes) Checks that the ByteBuffer contains a valid, usable ICU .dat package.
-
Field Details
-
DATA_FORMAT
private static final int DATA_FORMAT.dat package data format ID "CmnD".- See Also:
-
IS_ACCEPTABLE
-
-
Constructor Details
-
DatPackageReader
private DatPackageReader()
-
-
Method Details
-
validate
Checks that the ByteBuffer contains a valid, usable ICU .dat package. Moves the buffer position from 0 to after the data header. -
startsWithPackageName
-
getData
-
addBaseNamesInFolder
-
binarySearch
-
getNameOffset
-
getDataOffset
-
addBaseName
static boolean addBaseName(ByteBuffer bytes, int index, String folder, String suffix, StringBuilder sb, Set<String> names)
-