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 3698116
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:56:33+00:00 2026-05-19T04:56:33+00:00

Suppose I have a Map of properties, and I’d like a String representation. toString

  • 0

Suppose I have a Map of properties, and I’d like a String representation. toString buys this in the form {key=value, …}. I need to send this data over a wire and reparse it into a Map at the other end. What’s the best way to do this, given that the data might have a comma in it?

Also, is there any other technique that I’m missing entirely? If I could send over the object over the wire itself, that would be a wonderful. I’d like to avoid RMI, though.

  • 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-05-19T04:56:33+00:00Added an answer on May 19, 2026 at 4:56 am

    Have you considered just using Java Serialization?

    If the keys and values in your Map are pretty simple, you should be golden. ObjectOutputStream and ObjectInputStream will help you out.

    It’s not incredibly efficient for size and speed, however it’s incredibly fast to implement.

    EDIT: By pretty simple, yes I mean implement Serializable. But I also mean that the objects are pretty simple objects. If each object is some sort of a graph or tree, then serialization can get a bit more problematic.

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

Sidebar

Related Questions

suppose i have the following: boost::unordered_map< string , someValueType > map; someValueType& value =
Suppose I have the following: std::map<KEY,VALUE> m1; std::map<KEY,VALUE> m2; What is the most direct
What a title, suppose I have a map like this: std::map<int, int> m; and
Suppose I have a Person table that looks like this, where fk_FriendID is related
Suppose I have a map: <map name=externalIds table=album_external_ids> <key column=album_id not-null=true/> <map-key-many-to-many class=Major column=major_id/>
So suppose I have a class like this one: class Point { private: int
Suppose I have: stl::map<std::string, Foo> myMap; is the following function thread safe? myMap[xyz] ?
Suppose I have list countries of type List[String] and map capitals of type Map[String,
Suppose I have an array of string like following: str_arr=[10$, 10$ I am a
Suppose I have a map m: Map[Any, Int] . Now I would like to

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.