Method and system for platform-independent file system interaction
First Claim
1. A method for accessing and manipulating file specifications in a cross-platform development environment, comprising:
- in an application development environment on a computer system, instantiating a magic class file string object to represent a bit string;
determining a first encoding of a file name and file path associated with the magic class file string object, wherein the magic class file string object performs the determining, wherein the magic class file string object contains pieces of code programmed to make one or more automatic determinations at compile time, wherein the bit string represents a file specification of a file, wherein the file contains application code, and wherein the application code comprises a function call;
automatically determining a target operating system that is being called by the function call, wherein the magic class file string object performs the automatic determining;
automatically transcoding the file name and file path from the first encoding into a second encoding of the target operating system, wherein the magic class file string object performs the automatic transcoding; and
automatically making a file system application program interface (API) call specific to the target operating system, wherein the magic class file string object performs the automatic API call and wherein the pieces of code comprise a set of conditional logic for determining which one or more file system specific API calls are to make.
11 Assignments
0 Petitions
Accused Products
Abstract
Embodiments disclosed can provide a simple, singular programmatic interface for application developers to access and manipulate ASCII and non-ASCII file specifications in a cross-platform development environment regardless of operating system encoding capabilities or of the nature of the original file specification encoding. An application development environment is configured on a computer system such that a magic class file string object is instantiated when a bit string of a first encoding is received. The bit string represents a file specification of a file containing application code written by an application developer. The magic class file string object automatically determines what target operating system is being called by a function call in the application code, automatically transcodes the bit string from the first encoding into a second encoding of the target operating system, and automatically makes a correct file system API call specific to the target operating system.
10 Citations
15 Claims
-
1. A method for accessing and manipulating file specifications in a cross-platform development environment, comprising:
-
in an application development environment on a computer system, instantiating a magic class file string object to represent a bit string; determining a first encoding of a file name and file path associated with the magic class file string object, wherein the magic class file string object performs the determining, wherein the magic class file string object contains pieces of code programmed to make one or more automatic determinations at compile time, wherein the bit string represents a file specification of a file, wherein the file contains application code, and wherein the application code comprises a function call; automatically determining a target operating system that is being called by the function call, wherein the magic class file string object performs the automatic determining; automatically transcoding the file name and file path from the first encoding into a second encoding of the target operating system, wherein the magic class file string object performs the automatic transcoding; and automatically making a file system application program interface (API) call specific to the target operating system, wherein the magic class file string object performs the automatic API call and wherein the pieces of code comprise a set of conditional logic for determining which one or more file system specific API calls are to make. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer program product comprising at least one non-transitory computer readable storage medium storing instructions translatable by a processor to perform:
-
in an application development environment on a computer system, instantiating a magic class file string object to represent a bit string; determining a first encoding of a file name and file path associated with the magic class file string object, wherein the magic class file string object contains pieces of code programmed to make one or more automatic determinations at compile time, wherein the bit string represents a file specification of a file, wherein the file contains application code, and wherein the application code comprises a function call; automatically determining a target operating system that is being called by the function call; automatically transcoding the file name and file path from the first encoding into a second encoding of the target operating system; and automatically making a file system application program interface (API) call specific to the target operating system, wherein the pieces of code comprise a set of conditional logic for determining which one or more file system specific API calls are to make. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A system, comprising:
-
a computer system running an application development environment and having at least one non-transitory computer readable storage medium and a processor, wherein the at least one computer readable storage medium stores instructions translatable by the processor to perform; instantiating a magic class file string object to represent a bit string; determining a first encoding of a file name and file path associated with the magic class file string object, wherein the magic class file string object contains pieces of code programmed to make one or more automatic determinations at compile time, wherein the bit string represents a file specification of a file, wherein the file contains application code, and wherein the application code comprises a function call; automatically determining a target operating system that is being called by the function call; automatically transcoding the file name and file path from the first encoding into a second encoding of the target operating system; and automatically making a file system application program interface (API) call specific to the target operating system, wherein the pieces of code comprise a set of conditional logic for determining which one or more file system specific API calls are to make. - View Dependent Claims (12, 13, 14, 15)
-
Specification