Home | History | Annotate | Download | only in serializer

Lines Matching refs:CharInfo

19  * $Id: CharInfo.java 468654 2006-10-28 07:09:23Z minchau $
53 final class CharInfo
153 * making a mutable copy, {@link #mutableCopyOf(CharInfo)}.
156 private CharInfo()
173 private CharInfo(String entitiesResource, String method, boolean internal)
215 is = CharInfo.class.getResourceAsStream(entitiesResource);
459 private static CharInfo getCharInfoBasedOnPrivilege(
462 return (CharInfo) AccessController.doPrivileged(
465 return new CharInfo(entitiesFileName,
489 static CharInfo getCharInfo(String entitiesFileName, String method)
491 CharInfo charInfo = (CharInfo) m_getCharInfoCache.get(entitiesFileName);
492 if (charInfo != null) {
493 return mutableCopyOf(charInfo);
498 charInfo = getCharInfoBasedOnPrivilege(entitiesFileName,
500 // Put the common copy of charInfo in the cache, but return
502 m_getCharInfoCache.put(entitiesFileName, charInfo);
503 return mutableCopyOf(charInfo);
532 * @param charInfo The cached one.
535 private static CharInfo mutableCopyOf(CharInfo charInfo) {
536 CharInfo copy = new CharInfo();
538 int max = charInfo.array_of_bits.length;
539 System.arraycopy(charInfo.array_of_bits,0,copy.array_of_bits,0,max);
541 copy.firstWordNotUsed = charInfo.firstWordNotUsed;
543 max = charInfo.shouldMapAttrChar_ASCII.length;
544 System.arraycopy(charInfo.shouldMapAttrChar_ASCII,0,copy.shouldMapAttrChar_ASCII,0,max);
546 max = charInfo.shouldMapTextChar_ASCII.length;
547 System.arraycopy(charInfo.shouldMapTextChar_ASCII,0,copy.shouldMapTextChar_ASCII,0,max);
551 copy.m_charToString = (HashMap) charInfo.m_charToString.clone();
553 copy.onlyQuotAmpLtGt = charInfo.onlyQuotAmpLtGt;
562 * to CharInfo objects populated with entities defined in