Can I use Serialization if I have to update my class files?

Hi,
I'm writing a game right now, and I'm using Serialization to implement saving maps in it. Its saving me a whole bunch of time right now, but I'm worried that if I make even the slightest adjustment to my class files, then old saved maps won't work anywhere.
Is there anyway to work around this?
Thank you for any suggestions.
-Cuppo

Yes there is; the description of that all can be found in the API docs for the
Serializable interface; in short: you have to write/read the members of
your classes yourself by implementing two special methods; that's all.You don't even have to do that. As long as you provide a serialVersionUID
member and obey the versioning constraints in the Serialization specification
you don't have to do any extra programing.You're right; your scenario is even simpler; I discovered something funny though:
my 1.4.2. API docs lack all documentation of the serialVersionUID final member in
the description of the Serializable interface. It is present in the 1.5. docs, strange ...
kind regards,
Jos

Similar Messages

  • How can i use the apps i have downloaded on itunes

    how can i use the apps i have downloaded on itunes

    Apps downloaded through iTunes will only run on iOS devices such as iPhones, iPod Touch, and iPads. Plug your device into your computer, open iTunes, and click on it in the bar either at the top or the left side. Then, click apps at the top, and click install next to the app you want installed.
    If you are looking for apps to run on your Mac, you need to download them through the Mac App Store, not through iTunes.

  • Can I use imac 2007 which have dead hard drive as a Mac mini display

    Can I use imac 2007 which have dead hard drive as a Mac mini display

    If just the hard drive is defective you could mke a bootable USB thumb drive or bootable Firewire HD. Not sure of the connecting cables for the monitor functions. This could provide the functions though.
    http://www.screenrecycler.com/ScreenRecycler.html

  • How can I use apps that I have purchased from Apps Store for Mac on my iPad2?

    how can I use apps that I have purchased from Apps Store for Mac on my iPad2?

    Thanks, varjak, it is too easy to fall into use of jargon assuming everyone understands what it means.
    One additional point in all of this, not all "iDevice" apps run on every "iDevice".  Some are customized for a specific device, or class of devices such as the iPod/iPhone with their smaller screen.  Others for just the iPads for their larger screens.  So the user needs to be sure they are getting an app that will work on their specific device.
    And to Phoneboone, you do need to purchase the app again if it is for a different class of equipment.  When you are looking at apps such as iWorks for the Mac and iWorks components for the iPad, the iPad versions are very inexpensive.  Pages is only $10 (US) which is really cheap for such a good word processor that reads and saves in the MS Word format.
    Anyway, search for what you need and just enjoy the convenience of so many options for apps.

  • Can I use my iPhone to have internet access on the iPad?

    Can I use my iPhone to have internet access on the iPad?

    Yes, but you have to have your phone set up for tethering. Depending on your carrier that might require a special plan.

  • I have a US iPhone 3GS made in 2011. Now in the Philippines I had it unlocked. Now Internet is turned off and no technician can turn it on. I can only use Internet when I have WiFi access. Any ideas?

    I have a US iPhone 3GS made in 2011. Now in the Philippines I had it unlocked. Now Internet is turned off and no technician can turn it on. I can only use Internet when I have WiFi access. Any ideas?

    Please define "I had it unlocked".
    If it was not unlocked by AT&T, then it was hacked. Hacked and jailbroken phones can not be discussed here per the TOS.

  • How can I use slideshows that I have created in Aperture 3 (complete with captions and music tracks) in my DVD through iDVD version 7.1.2 ?  iDVD Manuals that I have read seem to avoid explaining that export process.  Any advice will be greatly appreciate

    How can I use slideshows that I have created in Aperture 3 (complete with captions and music tracks) in my DVD through iDVD version 7.1.2 ?  iDVD Manuals that I have read seem to avoid explaining that export process. I'm using Aperture 3, Mac OS X (10.7.5), on a Any advice will be greatly appreciated.  Anthony Zasadney, Bolingbrook IL.

    Export the slideshow from Aperture as a .mov file and import it into iDVD.

  • How can I use Automator to extract specific Data from a text file?

    I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
    How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
    Example of File Contents:
    Link Time =
    DD/MMM/YYYY
    Random
    Text
    161 179
    bytes of CODE    memory (+                68 range fill )
    16 789
    bytes of DATA    memory (+    59 absolute )
    1 875
    bytes of XDATA   memory (+ 1 855 absolute )
    90 783
    bytes of FARCODE memory
    What I would like to have as a final file:
    EXCEL COLUMN1
    Column 2
    Column3
    Column4
    Column5
    Column6
    MM/DD/YYYY
    filename1
    161179
    16789
    1875
    90783
    MM/DD/YYYY
    filename2
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    MM/DD/YYYY
    filename3
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • Can I use Bridge to export image data into a .txt file?

    I have a folder of images and I would like to export the File Name, Resolution, Dimensions and Color Mode for each file into one text file. Can I use Bridge to export image data into a .txt file?

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ?

    Can any one suggest me how can I use relative path inside SSIS pacakge to access config file ? Please help me as its urgent.THanks for your help in advance.

    Hi Jay,
    SSIS can only recognize the absolute path of a XML Configuration file, the relative path is not supported. Furthermore, if the XML Configuration file is already generated, we can use the Environment variable package configuration type instead so that
    SSIS runtime automatically looks for the configuration file from the path defined in the environment variable. This is convenient when we need to deploy a package to different environment. We only need to define the environment variable for package configurations
    once on each server, and then the variable can be used by all the packages on this server.
    Regards,
    Mike Yin
    TechNet Community Support

  • How can I use the "Correct camera distortion" filter and process multiple files in PSE 11?

    How can I use the "Correct camera distortion" filter and process multiple files in PSE 11?

    Did you check the help page for Correct Camera Distortion and Process multiple file
    Correct Camera Distortion: http://helpx.adobe.com/photoshop-elements/using/retouching-correcting.html#main-pars_headi ng_5
    Process multiple files: http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f89cffc612e28adab65-7 fff.html#WS287f927bd30d4b1f89cffc612e28adab65-7ff6

  • Can I use my macbook as a external harddrive to copy files to my imac

    can I use my macbook as a external harddrive to copy files to my imac

    Yup it's called Target Disk Mode. Click the link and follow the instructions.

  • HT1766 can i use my broadband instead wifi to update to ios 6.1 thru itunes

    can i use my broadband instead wifi to update to ios 6.1 thru itunes

    Yes, you can do the update via iTunes on your computer.
    See the description at the bottom here: http://support.apple.com/kb/HT4623

  • Adobe ID terms of use for your account have been updated

    Hallo zusammen,
    ich nutze seit ein par Tagen DreamWeaver 6 um Smartphone-Apps mit PhoneGap zu bauen. Die letzten Tage gab es dabei auch keine Probleme. Auch nicht beim direkten Weg über build.phonegap.com. Seit heute bekomme ich allerdings die Fehlermeldung:
    The Adobe ID terms of use for your account have been updated. Please go to adobe.com to accept the terms of use.
    Ich bin ja auch grundsätzlich bereit die neuen Nutzungsbedingungen zu akzeptieren, aber ich finde nicht die Stelle, an der ich den entsprechenden Haken setzen kann. Und ich habe schon eine kleine Weile gesucht!
    Auf der Site build.phonegap.com kann ich mich bei gleicher Fehlermeldung ebenfalls nicht mehr einloggen.
    DreamWeaver ist bezahlt, registriert und alles was dazu gehört...
    Weiß jemand Rat?
    Gruß
    Oliver Vincenz

    Hallo nochmal,
    ich erweiter mal meine Frage: Bin ich der Einzige, der dieses Problem hat? Könnt ihr euch noch bei build.phonegap.com einloggen oder aus dw6 heraus einen build starten, oder ist das mein individuelles problem?
    Ich habe inzwischen drei mal mit der deutschen Support-Hotline telephoniert. Die wissen auch nicht weiter und verweisen mich an eine Telefonnummer in den USA. Unter der Nummer erreiche ich allerdings niemanden. Dafür habe ich einen Chat-Support in den USA erreicht. Die können mir auch nicht helfen und verweisen mich wiederum an die deutsche Hotline. Der Hinweis, dass die mir auch nicht helfen ging ins leere. Das ist zum heulen!
    Eine Mail an [email protected] ist raus, aber bisher auch ohne Ergebnis.
    Ich poste meine Frage jetzt nochmal im englischen Forum...
    Gruß
    Oliver Vincenz

  • Anyone have an updated list of files needed to delete mackeeper and all other popups from your iMac

    Anyone have an updated lists of files to delete that cause mackeeper, bizrate, tlbsearch ads and all other popups?

    There is no need to download anything to solve this problem.
    You may have installed the "VSearch" trojan. Remove it as follows.
    Malware is always changing to get around the defenses against it. These instructions are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Step 1
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    Step 2
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Internet criminal behind VSearch has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

Maybe you are looking for

  • My read imessage notification won't go away. Help!

    I have tried everything to get the notification off. I deleted all my messages, reset all the settings, did a complete restore, restarted the iphone, and nothing can get that imessage notification off. I don't want to disable the notification because

  • Send a mail from report 6i with his function "mail...."

    I have tried to send a mail from report using "File" ---> "Mail.." Function that is avaible on report, but it send a file "*.eps" that is not readble with the normal reader..... It is possible to send a PDF file ??? Thank 's ..... il vampiro

  • Hide extension in file name input field when saving?

    A few days ago in Photoshop CS6 I started automatically getting an extension in the file name input field. Previously, when I did a "save as" I got, for example "image01." A few days ago I started getting "image01.jpg." I have another installation of

  • Configuring sticky cookie in CSS-11500 for BEA Weblogic servers

    Hi, I'm configuring a couple of CSS11503 to load balance traffic for Weblogic web servers. I'm trying to apply persintence based on cookies. By default, Weblogic server generates cookies with the following format: JSESSIONID=sessionid!primary_server_

  • Can you re-set lightroom without a clean install

    hi i am wanting to start again with lightroom 3, try to put my photos in the correct files etc can i delete everything then re start again without having to re install the software? thanks mark