915 |
/** |
/** |
916 |
* Write the locale to an object stream. |
* Write the locale to an object stream. |
917 |
* |
* |
918 |
* @param output the stream to write to |
* @param s the stream to write to |
919 |
* @throws IOException if the write fails |
* @throws IOException if the write fails |
920 |
* @serialData The first three fields are Strings representing language, |
* @serialData The first three fields are Strings representing language, |
921 |
* country, and variant. The fourth field is a placeholder for |
* country, and variant. The fourth field is a placeholder for |
935 |
/** |
/** |
936 |
* Reads a locale from the input stream. |
* Reads a locale from the input stream. |
937 |
* |
* |
938 |
* @param input the stream to read from |
* @param s the stream to read from |
939 |
* @throws IOException if reading fails |
* @throws IOException if reading fails |
940 |
* @throws ClassNotFoundException if reading fails |
* @throws ClassNotFoundException if reading fails |
941 |
* @serialData the hashCode is always invalid and must be recomputed |
* @serialData the hashCode is always invalid and must be recomputed |