Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8202703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:16:52+00:00 2026-06-07T07:16:52+00:00

I am attempting to serialize multiple maps to one file so that I can

  • 0

I am attempting to serialize multiple maps to one file so that I can retrieve them at a later time and rebuild all the values back into their original, distinct maps.

The maps are simple key/value pairs. In real-life usage there will only be about 10 distinct maps, with about 20 entries each, so performance isn’t a massive concern.

My original thoughts were to use the java Properties file approach, although this seems to only be suited for serializing one map to the file. I need to do multiple maps. Is there a way I can still use Properties file but specify a separator for different map’s values?

If this isn’t possible with Properties file, what would be the most convenient way of achieving what I want? I am hoping there is some predefined java utility methods for this sort of thing so that I don’t have to figure out my own file format and parsing/writing code.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:16:54+00:00Added an answer on June 7, 2026 at 7:16 am

    For simply storing the maps, use the buildin java serialization (given your keys and values do implement java.io.Serializable).
    Using ObjectOutputStream/ObjectInputStream you can serialize the data pretty easily, albeit the data will be stored in binary form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to serialize an object but I would like to exclude one of
I have a custom class that extends NSString . I'm attempting to serialize it
I have a service that attempting to serialize a list into JSON (using JSON.NET)
I'm trying to keep Visual Studio from attempting to serialize the datasource of drop
Attempting to set up an automated texting service for customers, where people can text
Attempting to make a NSObject called 'Person' that will hold the login details for
I'm attempting to serialize a class hierarchy in Newtonsoft Json using C#. My class
I have a problem when attempting to serialize class on a server, send it
I am attempting to retrieve a list of objects from Entity Framework via WCF,
I am attempting to make a simple class that serializes itself to disk when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.