750 StringUTF16.getChars(value, 0, count, val, 0);
751 }
752 fields.put("value", val);
753 fields.put("count", count);
754 fields.put("shared", false);
755 s.writeFields();
756 }
757
758 /**
759 * readObject is called to restore the state of the StringBuffer from
760 * a stream.
761 */
762 private void readObject(java.io.ObjectInputStream s)
763 throws java.io.IOException, ClassNotFoundException {
764 java.io.ObjectInputStream.GetField fields = s.readFields();
765 char[] val = (char[])fields.get("value", null);
766 initBytes(val, 0, val.length);
767 count = fields.get("count", 0);
768 }
769
770 synchronized void getBytes(byte dst[], int dstBegin, byte coder) {
771 super.getBytes(dst, dstBegin, coder);
772 }
773 }
|
750 StringUTF16.getChars(value, 0, count, val, 0);
751 }
752 fields.put("value", val);
753 fields.put("count", count);
754 fields.put("shared", false);
755 s.writeFields();
756 }
757
758 /**
759 * readObject is called to restore the state of the StringBuffer from
760 * a stream.
761 */
762 private void readObject(java.io.ObjectInputStream s)
763 throws java.io.IOException, ClassNotFoundException {
764 java.io.ObjectInputStream.GetField fields = s.readFields();
765 char[] val = (char[])fields.get("value", null);
766 initBytes(val, 0, val.length);
767 count = fields.get("count", 0);
768 }
769
770 synchronized void getBytes(byte[] dst, int dstBegin, byte coder) {
771 super.getBytes(dst, dstBegin, coder);
772 }
773 }
|