Apparatus and method for allowing object-oriented programs...

G - Physics – 06 – F

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

G06F 9/44 (2006.01) G06F 9/46 (2006.01)

Patent

CA 2312814

A set of stream writer and reader class and methods enable object frameworks to communicate with each other despite problems with missing classes due to mismatched versions. The stream writers are modified to deal with a new version of a class that extends from a class in an existing version by writing alternate object information compatible with the existing version when the future object class information is streamed. In this manner, alternate object information is written for each older version. The information for each of the alternate objects corresponding to each oder version is added after the existing object information as an extension with the length of the extension written at the beginning. The stream readers are modified so that when an older version stream reader reads the object information and does not understand the first alternate object (which might correspond to a later version), it skips the length specified for that extension and reads the second alternate object. If the second alternate object information is not understood, the reader skips the non-understood object information and continues with each alternate object. If none of the alternates is understood, then an exception is thrown. In one embodiment, the information for alternate objects which are not used is not discarded, but is instead saved in a temporary storage. Then, if the object is streamed out again, the stored information is added back into the stream.

L'invention concerne une série de classes d'unités d'écriture et de lecture de flux, qui permettent à des systèmes objets de communiquer les uns avec les autres malgré des problèmes d'absence de classes dus à une différence de versions. Les unités d'écriture de flux sont modifiées de façon à traiter une nouvelle version d'une classe, constituant une extension d'une classe dans une version existante, en écrivant des informations d'objets de remplacement compatibles avec la version existante quand les informations de la future classe d'objets sont envoyées en continu. De cette manière, les informations d'objet de remplacement sont écrites pour chaque version plus ancienne. Les informations pour chaque objet de remplacement correspondant à chaque version plus ancienne sont ajoutées après les informations d'objet existantes sous forme d'extension, la longueur de l'extension étant écrite au début. Les unités de lecture de flux sont modifiés de façon que quand une unité de lecture d'une version plus ancienne lit les informations d'objet et ne comprend pas le premier objet de remplacement (qui peut correspondre à une version plus récente), il saute la longueur spécifiée pour ladite extension et lit le second objet de remplacement. S'il ne comprend pas les informations du second objet de remplacement, il saute les informations d'objet non comprises et continue avec tous les autres objets de remplacement. S'il ne comprend aucun objet de remplacement, une exception est lancée. Dans l'un des modes de réalisation, les informations pour les objets de remplacement qui ne sont pas utilisés ne sont pas rejetées, mais conservées dans une mémoire temporaire. Si l'objet revient lors d'une lecture de flux ultérieure, les informations mises en mémoire sont rajoutées au flux.

LandOfFree

Say what you really think

Search LandOfFree.com for Canadian inventors and patents. Rate them and share your experience with other people.

Rating

Apparatus and method for allowing object-oriented programs... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Apparatus and method for allowing object-oriented programs..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Apparatus and method for allowing object-oriented programs... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFCA-PAI-O-1494319

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.