Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > Java > Object Serialization

Object Serialization

1-20 of 131     Previous     Next
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.
D
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?
MTS Programming
by DevX Pro
Should I make a call to GetObjectContext() in every function in my DLL? Obviously, you are going to do that in your "main" methods, but does calling GetObjectContext() in every function (main and helper functions) make your code more efficient? In the following example I've called GetObjectContext() in each function. Is that overkill or quality coding practice? Function Sum(nNumber1, nNumber2) as Integer '--- this is the main function a client would call GetObjectContext() '--- now call helper function to do the work nAnswer = TotalThem(nNumber1, nNumber2) Sum = nAnswer End Function Function TotalThem(nNumber1, nNumber2) as Integer GetObjectContext() TotalThem = nNumber1 + nNumber2 End Function
Interplatform Networking
by DevX Pro
I want to connect a Java client program to a C/C++ server application using sockets. What is the easiest way of doing this?
1-20 of 131     Previous     Next
Sitemap