Browse DevX
Sign up for e-mail newsletters from DevX

Search the Tips
Tip Bank > Java > Object Serialization

Object Serialization

1-20 of 133     Previous     Next
Object Casting in Java
by Octavia Anghel
Language: Java, Expertise: Beginner - See how objects can be cast explicitly and implicitly in Java.
Serialize an Object to a JSON String
by Srinath M S
Language: .NET, Expertise: Intermediate - Learn how to serialize objects to JSON with a helpful library.
Serialize Any .NET Object to a JSON String
by Deepak Choudhari
With JSON's popularity increasing by leaps and bounds, you'll find this technique useful.
Serialize and Deserialize an Object to an XML File in C# 2.0
by Deepak Choudhari
The example in this tip uses an ArrayList object to serialize, deserialize, and store itself in an XML file.
Serialize and Deserialize an Object Instance to XML
by Srinath MS
To serialize an object instance to XML, you need to use the XMLSerializer Class's Serialize method.
Passivation/Activation of a Stateful Bean in EJB 3.0
by Leonard Anghel
The EJB container needs help when dealing with nonserializable objects. Find out how to provide it.
Retrieving Custom Objects Added to the Clipboard
by Robert Pfeffer
Retrieving a custom object from the clipboard returns nothing if the object has a reference to a nonserializable object. Find out how to workaround this.
Use sun.misc Classes for Base64 Image Conversion
by Leonard Anghel
This tip demonstrates how to use sun.misc classes for Base64 image conversion.
Persist Java Objects in a File and Retrieve Them Later
by Amit Tuli
This tip explains how to persist a Java object in a file which can be retrieved back later.
by Brian Ray
You can use the technique for an "undo" menu/toolbar option. Use a collection instead of a listbox to reduce overhead. Support for both LIFO and FIFO is also included: ...
Obtain a Regional Decimal Character without an API
by Gianfranco Callino
Use this function to read a number decimal symbol from regional ...
Setting the Description of an Add-In
by Francesco Balena
When you use the Add-Ins project template to build your own add-ins, the description of the add-in appearing in the Add-Ins Manager window is always "My Addin." It isn't immediately clear how you can ...
Testing a Business Rule Should Not Have Any Side Effects
by Patrick Marshall
Testing a business rule should have no side effects. Avoid err.raise and msgboxes inside business rule tests.
How to Prevent a Class From Serialization
by Rajesh KS
The following code prevents classes from ...
Testing for Closed Socket
by DevX Pro
Is there any way to test if a socket is still open without writing to it?
Error Message Passing Throughout Nested Components
by Peter Luo
Nowadays, components are popularly used in VB projects. These components can sometimes make it hard to determine which component has an error when the application stops running. This is ...
Reverse DNS
by DevX Pro
If I can use the "InetAddress" class to acquire the IP address of a computer, is there a way to get the computer's name from an IP address?
Create a NNTP Offline Server
by Jose Antonio
Here's the code to simulate a simple NNTP server that provides ...
Objects and Sockets
by DevX Pro
Is it possible to send an object over a socket connection in Java?
Use of SocketImpl Class
by DevX Pro
What is the SocketImpl class used for?
1-20 of 133     Previous     Next
Thanks for your registration, follow us on our social networks to keep up-to-date