Skip to main content

Bean Serialization

  • Chapter
Essential JavaBeans fast

Part of the book series: Essential Series ((ES))

  • 54 Accesses

Abstract

In some situations it is desirable to save the state of a bean instance. For example, once we have set the properties on a Counter bean (for example by setting the Alarm bean message to “Egg-Timer” and providing a new icon for the Alarm bean) we might want to reuse this configuration many times. We do not want to have to reset the Alarm bean’s properties every time. So how do we manage this (remember that if you have purchased a bean from a bean vendor, you may not have access to its source code)? In JavaBeans this is achieved by serializing the bean; that is, storing the bean to a file in a format which allows it to be restored at a later stage. This chapter explains the concept of serialization and illustrates how it can be used with JavaBeans.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 24.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 32.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1998 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Hunt, J. (1998). Bean Serialization. In: Essential JavaBeans fast. Essential Series. Springer, London. https://doi.org/10.1007/978-1-4471-0623-4_9

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-0623-4_9

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-85233-032-3

  • Online ISBN: 978-1-4471-0623-4

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics