ForkedIO library
The ForkedIO library provides transparent, cross-platform reading and writing of files which contain Apple Mac OS resource forks. The library also supports and preserves type code and creator code information. All the information is retained regardless of the transfer route sequence and transitional operating systems. For example transferring files from an Mac OS system, to a Linux system, then to a Windows system and finally back to a Mac OS system will preserve and retain all the resource fork system code data.
The main purpose of the library is to provide an ordinary InputStream and OutpuStream, which will transparently read and store resource fork and system code information on any operating and file system, regardless of whether they support the former or not.
Mac OS 9 / OS X Support
Under Mac OS 9 and OS X the library implements Java wrappers around native byte-level read and write streams of Data and Resource Forks.
Other OS support
On other operating and file systems, Mac OS Forks are stored in 2 files - data fork, which has the name of the original file, and the Resource Fork and HFS Logical Block file, which has the name of the original file and a "._" prefix.
API
The main external API consists of 2 classes: ForkedFileInputStream and ForkedFileOutputStream. The entire API consists of classes responsible for reading and writing byte streams and HFS Logical Block information on various file systems. The ForkedIO library also allows manipulation of the data and resource forks and the HFS logical block independently.
|