×

Method and system for packing and unpacking web pages

  • US 7,464,328 B2
  • Filed: 10/08/2004
  • Issued: 12/09/2008
  • Est. Priority Date: 06/06/2000
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for packing a page as a single file, the method comprising:

  • receiving an indication that a user has selected through a shell or file dialog a page representation corresponding to a main markup language document of the page, and in response to receiving the indication, displaying a selectable representation associated with packaging the page into a single file;

    receiving an indication that the user has selected the representation associated with packaging the page into a single file;

    in response to receiving the selection associated with packaging the page, making a determination as to whether the file includes at least one link to at least one resource file;

    in response to a determination that the file includes at least one link to at least one resource file, packing the file and the at least one resource file into a single file;

    wherein packing the file and the at least one resource file into a single file comprises;

    storing a main markup language document of the page as a first component of the packaged file, the first component having a first content-location description corresponding to the location of the main markup language document,storing the at least one resource file as a second component of the packaged file, the second component having a second content-location description corresponding to the location of the at least one resource file, andwherein the first content-location description and the second content-location description define a folder structure corresponding to locations of the file and the resource file in relation to each other; and

    displaying a representation of the packaged page file in the shell or file dialog containing the page representation corresponding to the main markup language document of the page;

    determining whether the user desires to unpack the main markup language document; and

    in response to determining that the user desires to unpack the main markup language document;

    extracting a leaf name from the content-location description to be used as the name of the main markup language document,comparing the content-location description of each MIME part of the single file with the content-location description of the main markup language part of the single file,creating a folder structure corresponding to the content-location descriptions of the main markup language document and the MIME parts, wherein the folder structure includes a generic folder for storage of supporting files that do not have a content-location description,for each MIME part, determining if the supporting file is in the same folder as the main markup language document or in a subfolder below the main file,if the supporting file is in the same folder as the main markup language document or in a subfolder below the main file, converting the MIME part into HTML and saving the supporting file in the folder desiginated by the content-location description, andif the supporting file is not in the same folder as the main markup language document and is not in a subfolder below the main file, converting the MIME part into HTML and saving the supporting file in the generic folder.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×