Encoder, decoder, their methods, programs thereof, and recording media having programs recorded thereon
First Claim
1. A decoding method for restoring an initial file, file name, and file hierarchy from an archive file containing one or more files, one or more files contained in a folder, or one or more files and one or more files contained in a folder together with the file name and file hierarchy information,whereinstandard hierarchy information which indicates a file name with a file path represented in a predetermined common character coding, irrespective of system environments, is at least included in the file hierarchy information in the archive file, andoriginal hierarchy information which indicates an original character coding used to represent the file name with the file path is stored in association with the standard hierarchy information, when the file hierarchy information in the archive file contains the original hierarchy information,the decoding method comprising:
- an original hierarchy information decoding step of restoring, when the file hierarchy information in the archive file contains the original hierarchy information and the original character coding is a non-ASCII special character coding that can be used in a system environment where decoding is performed, the original hierarchy information to a character string in the non-ASCII special character coding and of restoring the file name and file hierarchy; and
a standard hierarchy information decoding step of restoring, when the file hierarchy information in the archive file does not include the character string in the non-ASCII special character coding or if the non-ASCII special character coding is not a character coding that can be used in the system environment where decoding is performed, the file name and file hierarchy by converting the file name in a standard character coding indicated by standard hierarchy information represented in the predetermined common character coding, irrespective of system environments, in the archive file into a file name in the character coding that can be used in the system environment.
1 Assignment
0 Petitions
Accused Products
Abstract
In encoding for putting one or more files and/or one or more files in a folder into a single archive file, original hierarchy information and standard hierarchy information generated by converting characters in a special character coding in each file name to characters in a standard character coding are recorded in the archive file. If the character coding used in the original hierarchy information in the archive file cannot be used in the system environment used in decoding, a file name in the standard character coding is generated from the standard hierarchy information and is converted to a character coding that can be used in the system environment.
-
Citations
8 Claims
-
1. A decoding method for restoring an initial file, file name, and file hierarchy from an archive file containing one or more files, one or more files contained in a folder, or one or more files and one or more files contained in a folder together with the file name and file hierarchy information,
wherein standard hierarchy information which indicates a file name with a file path represented in a predetermined common character coding, irrespective of system environments, is at least included in the file hierarchy information in the archive file, and original hierarchy information which indicates an original character coding used to represent the file name with the file path is stored in association with the standard hierarchy information, when the file hierarchy information in the archive file contains the original hierarchy information, the decoding method comprising: -
an original hierarchy information decoding step of restoring, when the file hierarchy information in the archive file contains the original hierarchy information and the original character coding is a non-ASCII special character coding that can be used in a system environment where decoding is performed, the original hierarchy information to a character string in the non-ASCII special character coding and of restoring the file name and file hierarchy; and a standard hierarchy information decoding step of restoring, when the file hierarchy information in the archive file does not include the character string in the non-ASCII special character coding or if the non-ASCII special character coding is not a character coding that can be used in the system environment where decoding is performed, the file name and file hierarchy by converting the file name in a standard character coding indicated by standard hierarchy information represented in the predetermined common character coding, irrespective of system environments, in the archive file into a file name in the character coding that can be used in the system environment. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A decoding method for restoring an initial file, file name, and file hierarchy from an archive file containing one or more files, one or more files contained in a folder, or one or more files and one or more files contained in a folder together with the file name and file hierarchy information,
wherein standard hierarchy information which indicates a file name with a file path represented in a predetermined common character coding, irrespective of system environments, is at least included in the file hierarchy information in the archive file, the decoding method comprising: a standard hierarchy information decoding step of restoring, when the file hierarchy information in the archive file does not include an original hierarchy information which contains a character string in a non-ASCII special character coding or when the non-ASCII special character coding in the original hierarchy information is not a character coding that can be used in the system environment where decoding is performed, the file name and file hierarchy by converting the file name in a standard character coding indicated by standard hierarchy information represented in the predetermined common character coding, irrespective of system environments, in the archive file into a file name in the character coding that can be used in the system environment.
-
7. A decoding method for restoring an initial file, file name, file hierarchy, and file attribute information from an archive file containing one or more files, one or more files contained in a folder or folders, or one or more files and one or more files contained in a folder or folders together with the file name, file hierarchy information, and file attribute information,
wherein standard hierarchy information represented in a predetermined common character coding, irrespective of system environments, is at least included in the file hierarchy information in the archive file, standard attribute information is at least included in the file attribute information in the archive file, where file attributes corresponding to those in the standard attribute information exist in predetermined system environments, and original hierarchy information is stored in association with the standard hierarchy information, when the file hierarchy information in the archive file contains the original hierarchy information, the decoding method comprising: -
an original hierarchy information decoding step of restoring, when the file hierarchy information in the archive file contains the original hierarchy information and a special character coding expressing the type of a character coding recorded in association with the original hierarchy information is a character coding that can be used in a system environment where decoding is performed, the original hierarchy information to a character string in the special character coding and of restoring the file name and file hierarchy; a standard hierarchy information decoding step of restoring, when the file hierarchy information in the archive file does not include the character string in the special character coding or if the special character coding is not a character coding that can be used in the system environment where decoding is performed, the file name and file hierarchy by converting a file name in a standard character coding indicated by standard hierarchy information represented in a predetermined common character coding, irrespective of system environments, in the archive file into a file name in the character coding that can be used in the system environment; and an original attribute information decoding step of, when the file attribute information in the archive file includes the original attribute information suitable for the system environment where decoding is performed, selecting the outputting the original attribute information, or when the file attribute information in the archive file does not include the original attribute information suitable for the system environment where decoding is performed, converting the standard attribute information into file attribution information suitable for the system environment where decoding is performed and outputting the converted file attribution information.
-
-
8. A decoding method for restoring an initial file, file name, file hierarchy, and file attribute information from an archive file containing one or more files, one or more files contained in a folder or folders, or one or more files and one or more files contained in a folder or folders together with the file name, and file hierarchy information,
wherein standard hierarchy information represented in a predetermined common character coding, irrespective of system environments, is at least included in the file hierarchy information in the archive file, original hierarchy information is stored in association with the standard hierarchy information, when the file hierarchy information in the archive file contains the original hierarchy information, a character string or symbol string represented in a special character coding and information indicating a type of the special character coding, the decoding method comprising: -
an original hierarchy information decoding step of restoring, when the file hierarchy information in the archive file contains the original hierarchy information and a special character coding expressing the type of a character coding recorded in association with the original hierarchy information is a character coding that can be used in a system environment where decoding is performed, the original hierarchy information to a character string in the special character coding and of restoring the file name and file hierarchy; and a standard hierarchy information decoding step of restoring, when the file hierarchy information in the archive file does not include the character string in the special character coding or if the special character coding is not a character coding that can be used in the system environment where decoding is performed, the file name and file hierarchy by converting a file name in a standard character coding indicated by standard hierarchy information represented in a predetermined common character coding, irrespective of system environments, in the archive file into a file name in the character coding that can be used in the system environment.
-
Specification