Пример #1
0
		/// <summary>
		/// Reads the state of a
		/// <code>StringBuilder</code>
		/// from the passed stream and
		/// restores it to this instance.
		/// </summary>
		/// <param name="in">the stream to read the state from.</param>
		/// <exception cref="System.IO.IOException">if the stream throws it during the read.</exception>
		/// <exception cref="ClassNotFoundException">if the stream throws it during the read.
		/// 	</exception>
		/// <exception cref="java.lang.ClassNotFoundException"></exception>
		private void readObject(java.io.ObjectInputStream @in)
		{
			@in.defaultReadObject();
			int count = @in.readInt();
			char[] value = (char[])@in.readObject();
			set(value, count);
		}
Пример #2
0
		/// <exception cref="System.IO.IOException"></exception>
		/// <exception cref="java.lang.ClassNotFoundException"></exception>
		private void readObject(java.io.ObjectInputStream s)
		{
			s.defaultReadObject();
			compile();
		}