Does Serialization Remove Mac Resource Fork

Hello all!
Does the Java Object Serialization remove the resource fork of Macintosh files? Please give a short argumentation why or why not.
If not, what happens with the resource fork after serializing: is a deserialized Mac file usable on other operating systems?
Thank you very much for answering!

This is a meaningless question.Well, let's see.
You cannot serialize a file anyway.
All you can do is serialize some objects and write the resulting byte sequence to a file.An object-oriented programming like the Java one is based on objects, classes and the relation between them. The objects consist of variables (that address the data) and methods (that operate on the data). The objects have a particular type and thus constitute classes. Since a file is a 'bag' of bits and bytes its contents can be read into a byte[] and serialized.
The files on the Mac HPFS consist not only of a data fork but also of a resource fork. Another file systems, e.g. NTFS, process only the data fork and keep resources separately. I know that the serialization removes certain processor-specific issues such as endianess or word length. How about removing certain OS-specific issues as far as the Mac's resource fork is concerned? ... and so enabling files serialized on the Mac to be transfered to a different OS without loss of resource infos.
Then later you can read the byte sequence and deserialize it to produce copies (more or less approximately) of the original objects.Yes, to be done on the non-Mac system: but if serialization does not handle the resource fork in some way it will be unpleasant (if not more) not to be able to deal with your deserialized files there.
It must be more than clear now what I want to know: it's not a joke and has nothing to do with a mere homework or the like.

Similar Messages

  • How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?

    How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?
    I do not use command line and tried to use ZapResourceForksAMAub_1.2 which I downloadedand instaled the Zap Resource Forks.action. Next I tried to use their sample copy-zap-rsrc.workflow in Snow Leopardon my Mac Pro. The 3 different steps are displayed in Automator but there is no place to put in which folder (on my deskto) to copy, and remove the resource forks from the graphic files.
    Can sombody please step me through this please please.
                                                                                          W.W.

    Unfortunately, Back to My Mac only works across computers using the same iCloud account.

  • Is there a resource fork with iTunes music files?

    I want to put a few iTunes music files on an SD card and plug it into my Panasonic TV for sort of instant access.
    It worked and sounded OK, except I get two files on the SD card for every file in iTunes (the second one isn't recognized).
    I seem to remember this was an issue with JPG image files and people used GraphicsConverter to remove the resource fork.
    Is that the problem I'm having - the resource fork showing up as an unreadable file?
    Is there a way to remove it? GC won't.
    Or is it something else?
    Thanks, HNick

    http://www.limit-point.com/Utilities/DeleteFork.html
    http://www.gingerbeardman.com/services/ - fork deletion utilities (OSX 10.6+)
    http://en.wikipedia.org/wiki/Resource_fork#The_Macintosh_file_system
    http://zeroonetwenty.com/blueharvest/

  • Delete Resource Fork.

    Hello AppleScript Gurus,
    I'm wondering if it's possible to tell finder or another application to delete or remove a resource fork? I've got a lot of file that have custom & preview icons and I don't need or want them to have them.
    Thanks in advance,
    Maximilian

    Use the ditto command in the Terminal, which is in the /Applications/Utilities/ folder, to create a copy of those files without the resource fork, and throw the originals away.
    (26858)

  • MAC OSX 10.5.8 and 2TB Time Machine would not back up. Saw discussion  that suggested you change name without apostrophes etc. Went into Time Machine and did a manula backup without a name and it appears to be backing up now. Does this remove delete the o

    MAC OSX 10.5.8 and 2TB Time Machine would not back up. Saw discussion  that suggested you change name without apostrophes etc. Went into Time Machine and did a manula backup without a name and it appears to be backing up now. Does this remove delete the old backup's ?

    Does this remove delete the old backup's ?
    No, they are all just fine.

  • Two questions, does resetting the Mac Book Pro late 2008 speed up after reset? Also, do i need to remove my WLAN router and get only a plain MODEM when setting up my AIR PORT time machine?

    Two questions, does resetting my Mac Book Pro late 2008 speed up after resetting? Also, do i need to get rid of my WLAN router to make my AIR PORT time capsule work?
    Am grateful for any answers...its a 15,4"...
    Will soon buy a new one, is battery better on 13 than 15 "?
    Have a great day...

    If you mean restoring OS X, that won't necessarily have any effect on speed.
    Not enough free space on the startup disk can slow your Mac down.
    Click your Apple menu  top left in your screen. From the drop down menu click About This Mac > More Info > Storage
    Make sure there's at least 15% free disk space.
    More tips here >  Mac troubleshooting: What to do when your computer is too slow | Macworld
    No need for the WLAN router with AirPort Time Capsule.

  • ExpressCard/34 not working in BootCamp Windows 7 64-bit. Apple's BIOS emulation does not give enough resources.

    MacBook Pro unibody, 15" 2009
    ExpressCard/34 (Card is by Transcend TS-RDF1, JMicron chip for SD card) is not working in BootCamp Windows 7 64-bit. Windows reports:
    "This device cannot find enough free resources that it can use. (Code 12)
    If you want to use this device, you will need to disable one of the other devices on this system."
    Other data points: Card works fine in Mac OSX, worked under Windows XP 32-bit (initially reported same problem, but works after reboot).
    Checking the forums there seems to be no actual device suggested to actually remove that would help the problem. And even if it was, the concept is ridiculous. What other device would you like to remove? Display adapter? Network adapter? No way. I use all available devices and don't want to compromise.
    It seems like BIOS emulation does not allocate enough resources to ExpressCard.
    Are others having the same problem?
    Does anyone have a fix for this?
    Is there anyone at Apple who cares to provide a solution?

    It is not a driver problem, but a problem in the BIOS emulated by bootcamp on some (not all) MBP models. So unless Apple fixes it in bootcamp, there is no real solution. And obviously, Apple doesn't care. They are dropping the Expresscard slot anyway.
    Unfortunately, this poster seems right: http://forums.macrumors.com/showthread.php?t=912259 :
    The 2008/2009 Macbook Pros don't allow to use the ExpressCard slot because of EFI/Bootcamp errors (Windows Vista/7 cannot allocate an IRQ to the slot). You don't need any drivers for using an ExpressCard slot on Windows, you only need the drivers for the corresponding card you are using.
    Bootcamped XP allowed to use the slot, but you could not use hot-plugging.
    And from the Sonnet site ( http://www.sonnettech.com/product/tempo_sata_express34.html ) :
    Tempo SATA ExpressCard/34 not supported under Windows 7 or Windows Vista when running on unibody MacBook Pro computers. The problem is caused by the MacBook Pro's BIOS emulation, which doesn't allocate enough resources to support certain kinds of Expresscard/34 devices, such as a SATA controller, in these operating systems.
    (added link to Sonnet's explanation)

  • "Open With"- "Change All" corrupts your file (Resource forks, extended attributes, creation date)

    I finally know why some of my files get corrupted.
    If you use the following method to assign one kind of file to always open with the same application;
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/8387.html
    (File -> Get Info -> Open With -> Change All)
    an extended attribute will be added to your file.
    You can examine that by typing "ls -l" in Terminal. If you see an @-sign after permissions than you have an extended attribute in that file.
    To see what it contains, type "xattr -l filname.jpg" in Terminal.
    Besides that is adds an extended attribute (which can be deleted with the "xattr --help" command) the modification date of the selected file will be changed.
    I think this is irritating because I wan't to keep my master photos with the same modification date as creation date.
    What else does it effect besides the modification date and to add extended attributes? Does my metadata get intact?
    (If you further want to make a backup copy on for example a FAT32 filesystem than your got a new problem. FAT32 doesn't support resource forks, so besides filename.jpg you will have an additional ._filename.jpg of 4kb)

    Doesn't sound like there is any corruption going on to me. It may change the date modified, but that should be expected since you modified the file.

  • OSX and Windows Server 2000 resource forks

    Our shop is 95% OSX with a Windows Server 2000 server. There is one application that is sensitive to image file resource forks copied to the server. When the app does a particular operation if there are resource forks in the folder the operation fails.
    Is there a way to either strip the forks on the copy operation? Or is there a way to block them in Windows Server?
    BTW, the application is a dedicated print server RIP linked to a Durst photographic printer running on Windows XP.
    G5   Mac OS X (10.4.6)   Windows Server 2000
    G5   Mac OS X (10.4.6)   Windows Server 2000
    G5   Mac OS X (10.4.6)   Windows Server 2000

    I feel your pain. I have been dealing with the same thing and found the following options:
    Try turning on "Services for Macintosh" or SFM on the windows server. I am NOT a windows guy I have had mixed results when my LAN folks have done this for me. In some instances the ._rsrc files don't appear, and this won't fix long name issues if you are having them.
    Another way to go w/o touching the windows server...third party.
    Path Finder 4: http://www.cocoatech.com/pf4
    Blue Harvest: http://zeroonetwenty.com/blueharvest/#faq
    KopyMac 2.6.1b: http://www.tcsn.net/mont/index2.html
    I have not tried the third party solution yet. I am still convinced there must be some way to have the mac just stop creating the files, but so far I have nothing. The only article apple has that is remotley related addresses .DS_Store files and NOT the ._rsrc files. I tries the edit to com.apple.desktopservices.plist and I still had a server full of ._bsfile.
    Hope this helps, and if anyone out there has the 100% mac solution PLEASE share.
    PowerBook G4   Mac OS X (10.4.6)  

  • Compressing files and preserving resource forks

    I am trying to compress a bunch of SubEthaEdit files in a folder while preserving their resource forks. But when I compress the folder 'foo' with,
    tar zcvf foo.tgz foo
    and uncompress foo.tgz on a different computer with,
    tar zxvf foo.tgz
    the SubEthaEdit icons are lost and I can no longer automatically open the files with SubEthaEdit by double clicking on them.
    Does anyone have a solution (or solutions)? Thanks.

    Hi Wataru:
    I don't have a definitive answer to your question, but here are 4 ideas:
    1. You are probably using /sw/bin/tar. I am unclear on this but it might be that on 10.4.x, /usr/bin/tar behaves in a more resource-fork-friendly fashion. So you could try that.
    2. Fink I think still has hfstar, and that will explicitly do what you need.
    3. You could make a disk image, put the files in that, and then tar up the disk image.
    4. It might actually be doing the right thing, but the resource forks aren't being recognized. I have noticed that resource forks from one mac account on one computer are not recognized on another mac with a different UID. Try using mdls to see if that is what is going on.

  • Strip resource forks and .DS_Store files from folder

    I'm transferring stuff from my Mac to a Windows machine using a FAT32 formatted keydrive, and want to eliminate the various dot files from folders before I copy them to the Windows box. I had tried using a Terminal command, which was tedious and at one point I mistyped something and managed to nuke one of the folders on the drive. After a search, I found this script at MacOSXHints:
    on run
    display dialog "Drag a removable disk icon here to have it cleaned and ejected"
    end run
    on open selectedItem
    -- get a text version of the volume name and remove the trailing colon :
    set volumeName to selectedItem as string
    set volumeName to characters 1 thru (the (length of volumeName) - 1) of volumeName as string
    if (list disks) contains volumeName then
    do shell script "find '/Volumes/" & volumeName & "' -name '.DS_Store' -exec rm '{}' \\;"
    do shell script "find '/Volumes/" & volumeName & "' -name '._*' -exec rm '{}' \\;"
    try
    do shell script "rm -rd '/Volumes/" & volumeName & "/.Trashes'"
    do shell script "rm -rd '/Volumes/" & volumeName & "/.TemporaryItems'"
    end try
    try
    tell application "Finder" to eject disk volumeName
    end try
    end if
    end open
    It worked great, but took a bit of time to run. I no longer need to clean the whole drive again, just specific folders I add to the drive now. Unfortunately I don't actually know how to write Applescript, I can just sometimes adapt an existing script to my needs, but this adaptation is beyond my meagre abilities. Last night I was copying a couple of folders to the drive, then using the Terminal "find execute remove" command to get rid of the dot files after the fact. I would like to have an Applescript droplet, so that I drop the folder onto it and the resource forks are stripped off and the .DS_Store files are removed before I copy the folder to the key drive.
    Any help appreciated!
    Francine
    Francine
    Schwieder

    Make a duplicate of the folder you want to transfer on your hard disk, and then run the following on the duplicate:
    on open droppedItems
    repeat with anItem in droppedItems
    if (folder of (info for anItem)) is false then
    display dialog (anItem as string) & " was not proccessed." & return & return & "Folders only please"
    else
    do shell script "find " & quoted form of POSIX path of anItem & " -name \".DS_Store\" -exec rm '{}' \\;"
    do shell script "find " & quoted form of POSIX path of anItem & " -name \"._*\" -exec rm '{}' \\;"
    do shell script "ditto --norsrc " & quoted form of POSIX path of anItem & " '/Volumes/volumename/pathname/'"
    end if
    end repeat
    end open
    The second do shell script line may not be needed in this variation.
    (21517)

  • How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac.  Now I can't remove her e-mail address from Facebook.  It was suggested to me that I try clearing temporary files from Safari but I can't find

    How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac running Mac OSX 10.7.5 and Safari 6.1.6.  Now I can't remove her e-mail address from my computer.  When I open Facebook her address shows in the user button.  I do not have a Facebook account.  It was suggested to me that I try clearing temporary files from Safari but I can't find anything that tells me how to do this.  Are temporary files the same as the cache?  It also was suggested that I try clearing Safari cache.  How do I do that?

    Check Safari/Preferences/Passwords to see if the Facebook account is there. If so, select it and remove it. If you are still having problems, Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. If that doesn't work, Safari/Reset Safari.

  • Can't open appleworks file / resource fork issue

    Hi,
    I've just readt the post "Can't open old appleworks/clarisworks files".
    My problem was that I got a "I/O error" when trying to open some appleworks files with appleworks 6.2.9.
    I realize that I copy those file from my previous disk to a PC formated CD. Hence, some resource fork files should miss.
    BUT, I don't have anymore the original files since I re-install my Mac...
    If there a way to recover my files despite of this resource fork issue ? Is it possible to create again the resource fork file ?
    Christophe

    It's not a resource fork problem. If it were, adding the .cwk extension to the file name would likely fix it. AppleWorks 6.2.9 (the current version) can't open all ClarisWorks 4 or earlier files. It gives an I/O error. There doesn't appear to be a way to predict which files will cause problems. I've had it happen & not happen with all AppleWorks file types. These files can be opened by any other version of AppleWorks 6, including the OS 8/9 component 6.2.8. If you have the retail version of AppleWorks 6.2.9 or your “consumer” Mac came with an earlier version of AppleWorks 6 that you have updated to 6.2.9 & have Classic installed, you can "Force" AppleWorks 6 to open in Classic to open the files, save them as AW 6 files & then open them in the OS X version. Also, if you have Classic installed & have AppleWorks 5, this can be used to open the ClarisWorks files & save them as AppleWorks 5 which AppleWorks 6.2.9 can open.

  • EPS-file: How to preserve resource fork when moving file to Linux

    Hi!
    We have a following problem on our DAM system:
    When saving an EPS-file from Photoshop CS2 on 10.4 with Machintosh preview we can´t transfer the file to Linux DAM system without losing the preview picture. Apparently this is because the PICT preview file is in resource fork of the file and Linux doesn´t understand anything about those.
    The problem occurs only with Freehand MX when using these un-"resource forked" files. Then using EPS with TIFF-preview we get a black background if cut path is used in the image so that´s not a proper solution.
    Can ANYONE point me a possible solution: how can I transfer Macintosh files on Linux without losing resource forks??
      Mac OS X (10.4.8)  

    Control-click on the file and choose the Create
    Archive of "blah" item in the menu that pops up.
    This creates a file called "blah.zip", which has
    been compressed in such a way that it can be safely
    stored on non-Mac systems. When it is de-archived
    on another Mac OS X system (by double-clicking it),
    the file should be intact. (Note that third-party
    apps for decoding zip files may not properly restore
    the resource fork, as the Mac's archive function
    creates a zip archive with the resource contents
    stored in a special way, which other unzip utilities
    will just read as another file (or folder, don't
    recall which).
    Thanks but I should have been more precise:
    What I meant was that is there any tool for Linux to handle resource forks without archiving/compressing the file?
    Our DAM generates preview image for the EPS automatically so it can´t be inside compressed file.

  • Hp C310 e all in one. Print that is stuck in the print queue, cancel does not remove

    hp C310 e all in one. I have a print that is stuck in the print queue, cancel does not remove says deleting. I have tried shutting down printer, closing word doc, multiple canel all prints. Any Ideas

    Hello mackice,
    Try these steps below to clear the print queue. The steps are listed for Vista and Windows 7 and would be slightly different for XP. If you are using a Mac then the steps below would not work. Please advise what OS you are using.
    Option 1)
    1. Click on start orb
    2. Type in search window: "services.msc" (without the quotes)
    3. click ok
    4. Scroll down to Printer spooler service and click on it in the right side window.
    5. On the left side click stop the service and wait forthe process to stop
    (Do not close the window yet. You will have to restart it here later.)
    6. next delete the print job in the printer queue
    7. then restart the spooler service
    8. Resubmit your new print job.
    Option 2)
    If that doesn't clear it, the next step would be to stop the spooler
    service as stated above
    Go into windows explorer
    (Print job data is collected and stored in a spool file in the spooler
    folder.)
    It is located in:
    C:\WINDOWS\system32\spool\PRINTERS
    Your print job will show 2 files there Example below:
    00002.SHD
    00002.SPL
    Delete the files located in there. There may be several of them
    depending apon how many print jobs you submitted. You will have to
    resubmit your print jobs all over again.
    Next go back to services window and restart the spooler service
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

Maybe you are looking for

  • A better way to get current and previous status?

    I'm working on a system where status messages are read into a table for items of equipment. My requirement is to find all the messages arriving within a particular time window, together with the status value and the status value for the previous mess

  • Adobe Reader 9 installation freezes computer

    upon running the installation for adobe reader 9, setup gets to 99.90 percent, then a new window comes up, similar to the installation window. Estimated time remaining gets to 9 seconds, then the installation freezes, and so does everything else. A c

  • Saving a file as PDF from CC Illustrator

    Just updated from CS3 to CC Illustrator. In the old CS3 if I saved a file as a PDF. Adobe acrobat would open and I would then see the file on the screen as a PDF. Now in CC the file just save as a PDF in illustrator and doesn't reopen so I can see th

  • How to make my URLConnection through proxy(need authentication)

    Hi... we are writing a net program behind the firewall,and the proxy server need authentication(you have to input your id,pswd and the domain where you are), so, our URLConnection cant reach the outside of the firewall. Is there any solution???

  • Weird small box outline in upper left of dreamweaver app

    Hello, I've installed the trial of Dreamweaver and there is a weird small box in the upper left of the application when I'm in it. Its just hte outlineo of a rectangular box. No content in the box. If I have tabs or something behind it I can not clic