Method and system for packing and unpacking web pages
1 Assignment
0 Petitions
Accused Products
Abstract
A method for packing the multiple files and folders of an HTML Web page into a single MHTML file. The packing process begins by determining whether the user has write privileges to the current location. If not, the user is prompted to save the MHTML file in an alternate location (e.g., the desktop). If the user has write privileges to the current location, the process opens the main HTML Web page and searches for supporting resource files. In short, the supporting resource files are identified by searching for known, common resource file references in the main HTML source file. When the resource file references have been identified, the process packages the main HTML document and all of the supporting resource files into a single file in MHTML format. The unpacking process opens the MHTML file and identifies the main HTML document portion, as well as the portions of the MHTML file containing the supporting resource files. Once all of the components have been identified, the Web page'"'"'s folder structure is determined by referring to the content location field contained in each separate portion of the MHTML file. The individual MHTML components are converted into files and the main HTML file is stored. The resource files are stored in locations relative to the main HTML file, as identified by the unpacked folder structure.
-
Citations
34 Claims
-
1-14. -14. (Canceled)
-
15. A method for packing a page as 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, and wherein 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. - View Dependent Claims (16, 17, 18, 19, 20)
-
-
21. A computer-implemented method for packing a page as a single file, the method comprising:
-
receiving an indication that a user has selected a representation corresponding to a markup language source file associated with 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;
opening the markup language source file associated with the page;
parsing the markup language source file searching for supporting files;
gathering a list of supporting files; and
packing the supporting files and the markup language source file into a single file, wherein each supporting file is added to the single file by assigning each supporting file a content-location description set to the location of the supporting file and a separate content-type description. - View Dependent Claims (22, 23, 24, 25, 26)
-
-
27. A method for unpacking an MHTML page file, having a main markup language part and at least one MIME part corresponding to at least one supporting file, to markup language format, the method comprising:
-
determining that a user desires to unpack an MHTML page file;
making a determination as to whether the main markup language part of the MHTML file has a content-location description;
if the main markup language part of the MHTML file has a content-location description, extracting a leaf name from the content-location description to be used as the name of the markup language page file;
comparing the content-location description of each MIME part of the MHTML file with the content-location description of the main markup language part of the MHTML file;
creating a folder structure corresponding to the content-location descriptions of the main markup language file 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 file or in a subfolder below the main file;
if the supporting file is in the same folder as the main markup language file or in a subfolder below the main file, converting the MIME part into markup language and saving the supporting file in the folder designated by the content-location description; and
if the supporting file is not in the same folder as the main markup language file and is not in a subfolder below the main file, converting the MIME part into markup language and saving the supporting file in the generic folder. - View Dependent Claims (28, 29, 30, 31, 32, 33, 34)
-
Specification