Home | History | Annotate | Download | only in text
      1 //  2016 and later: Unicode, Inc. and others.
      2 // License & terms of use: http://www.unicode.org/copyright.html#License
      3 /*
      4  *******************************************************************************
      5  * Copyright (C) 2013, Google Inc, International Business Machines Corporation and         *
      6  * others. All Rights Reserved.                                                *
      7  *******************************************************************************
      8  */
      9 package com.ibm.icu.text;
     10 
     11 import java.io.ObjectStreamException;
     12 import java.io.Serializable;
     13 
     14 /**
     15  * @author markdavis
     16  *
     17  */
     18 class PluralRulesSerialProxy implements Serializable {
     19     private static final long serialVersionUID = 42L;
     20     private final String data;
     21     PluralRulesSerialProxy(String rules) {
     22         data = rules;
     23     }
     24     private Object readResolve() throws ObjectStreamException {
     25         return PluralRules.createRules(data);
     26     }
     27 }
     28 
     29