• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

theory behind Object Storage in java - ObjectOutputStream and ObjectInputStream

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the theory behind Object Storage in java ? and how the file structure will be to store these objects ?
in normal situations - when integers stored - it consumes 4 bytes length and if a record that contains integer and double it will consume around 12 bytes record length
but for Objects how can we determine the length of and Object ? how can we differentiate between the first object and the second?
thank you very much ..

 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Do you mean storing representations of objects to some medium like a hard disk? If so then it depends on the mechanism you use to store the objects, you could use Serialization, JSON, XML to name but a few and they all behave differently.
 
Omar Rashwan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you Tony..
Serialization I mean
 
Tony Docherty
Bartender
Posts: 3323
86
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"the theory behind Object Storage in java" is rather a broad topic, what are you struggling to understand about serialization?

Have you read the information here: http://docs.oracle.com/javase/8/docs/technotes/guides/serialization/index.html
 
Omar Rashwan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what are you struggling to understand about serialization?
exactly I want to understand about Storage Technique that serialization uses to store Objects .
because I want to Develop my own Object-Oriented Database - and I want to collect Information about the All the modern storage Techniques.
I downloaded Object-DB Object DB website and I amazed by its performance Performance Benchmarkand its easiness,
can you please, recommend any websites that gives a good articles about Object-Oriented Databases

thank you
 
Tony Docherty
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Omar Rashwan wrote:what are you struggling to understand about serialization?
exactly I want to understand about Storage Technique that serialization uses to store Objects .


The link I gave in the earlier post contains a link to the Java Object Serialization Specification which should give you all the information you require.

Omar Rashwan wrote:
because I want to Develop my own Object-Oriented Database - and I want to collect Information about the All the modern storage Techniques.
I downloaded Object-DB Object DB website and I amazed by its performance Performance Benchmarkand its easiness,
can you please, recommend any websites that gives a good articles about Object-Oriented Databases


Sorry I don't have any useful links for you but maybe someone else will be able to help you with this.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic