Class ICUBinary.DatPackageReader

java.lang.Object
com.ibm.icu.impl.ICUBinary.DatPackageReader
Enclosing class:
ICUBinary

private static final class ICUBinary.DatPackageReader extends Object
Reads the ICU .dat package file format. Most methods do not modify the ByteBuffer in any way, not even its position or other state.
  • Field Details

  • Constructor Details

    • DatPackageReader

      private DatPackageReader()
  • Method Details

    • validate

      static boolean validate(ByteBuffer bytes)
      Checks that the ByteBuffer contains a valid, usable ICU .dat package. Moves the buffer position from 0 to after the data header.
    • startsWithPackageName

      private static boolean startsWithPackageName(ByteBuffer bytes, int start)
    • getData

      static ByteBuffer getData(ByteBuffer bytes, CharSequence key)
    • addBaseNamesInFolder

      static void addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names)
    • binarySearch

      private static int binarySearch(ByteBuffer bytes, CharSequence key)
    • getNameOffset

      private static int getNameOffset(ByteBuffer bytes, int index)
    • getDataOffset

      private static int getDataOffset(ByteBuffer bytes, int index)
    • addBaseName

      static boolean addBaseName(ByteBuffer bytes, int index, String folder, String suffix, StringBuilder sb, Set<String> names)