Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

theory behind Object Storage in java - ObjectOutputStream and ObjectInputStream  RSS feed

 
Omar Rashwan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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 ..

 
Tony Docherty
Bartender
Posts: 3268
82
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
thank you Tony..
Serialization I mean
 
Tony Docherty
Bartender
Posts: 3268
82
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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: 3268
82
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!