Example #1
0
 internal ResourceTable32(ICUResourceBundleReader reader, String baseName,
                          String localeID, Assembly loader)
 {
     this.rawData      = reader.GetData();
     this.rootResource = (IBM.ICU.Impl.ICUResourceBundle.UNSIGNED_INT_MASK) & reader.GetRootResource();
     this.noFallback   = reader.GetNoFallback();
     this.baseName     = baseName;
     this.localeID     = localeID;
     this.ulocale      = new ULocale(localeID);
     this.loader       = loader;
     Initialize(null, "", rootResource, null, isTopLevel);
 }
        public static ICUResourceBundleReader GetReader(String baseName,
                                                        String localeName, Assembly root)
        {
            String resolvedName = GetFullName(baseName, localeName);
            Stream stream       = IBM.ICU.Impl.ICUData.GetStream(root, resolvedName);

            if (stream == null)
            {
                return(null);
            }
            ICUResourceBundleReader reader = new ICUResourceBundleReader(stream,
                                                                         resolvedName);

            return(reader);
        }