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

  • Home
  • SEARCH
  • 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 7758407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:21:07+00:00 2026-06-01T13:21:07+00:00

what is available way in serialization API to loop through all objects stored in

  • 0

what is available way in serialization API to loop through all objects stored in media(file/db) other than catching EOFException in while(true) loop, adding number of objects count at the start of file before writing objects or storing array or collection in file instead of individual objects?
If different type of objects are stored in file and they are not stored through array/collection, how to iterate using ObjectInputStream?

  • 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-01T13:21:09+00:00Added an answer on June 1, 2026 at 1:21 pm

    All ways work:

    1. Store the length of the file in the beginning
    2. Saving collections (basically it does (1) inside)
    3. Writing some EndOfFile object at the end.
    4. Catching EOFException

    No other options are available (as far as I’m aware).

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

Sidebar

Related Questions

Three SHA512Managed related questions: Is SHA512Managed considered the best one-way hash available in .NET
What is the best way to determine available bandwidth in .NET? We have users
Is there a way to change the available elements based on a previous element
Is there a way to get the available resource translations of a .net dll?
Is there any way to get available values for SET field in table? Thank
What is the best way to determine whether there is an available Internet connection
Is there any way to check if a particular plugin is available? Imagine that
Is there a way to get notifications when the available memory goes below a
Is there any known way of listing the WMI classes and their properties available
I'm working on a serialization tool using Moose to read and write a file

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.