Skip to main content

Posts

Showing posts from April, 2011

What Is Marshalling and Unmarshalling?

Marshalling Marshalling provides a client application the ability to convert a JAXB-derived Java object tree back into XML data. By default, the Marshaller uses UTF-8 encoding when generating XML data. Client applications are not required to validate the Java content tree before marshalling. There is also no requirement that the Java content tree be valid with respect to its original schema to marshal it back into XML data. Unmarshalling Unmarshalling provides a client application the ability to convert XML data into JAXB-derived Java objects.

What is JAXP? How to Read and Write XML Document Using JAXP

The Java API for XML Processing (JAXP) is for processing XML data using applications written in the Java programming language. JAXP leverages the parser standards Simple API for XML Parsing (SAX) and Document Object Model (DOM) so that you can choose to parse your data as a stream of events or to build an object representation of it. JAXP also supports the Extensible Stylesheet Language Transformations (XSLT) standard, giving you control over the presentation of the data and enabling you to convert the data to other XML documents or to other formats, such as HTML. JAXP also provides namespace support, allowing you to work with DTDs that might otherwise have naming conflicts. Finally, as of version 1.4, JAXP implements the Streaming API for XML (StAX) standard. Designed to be flexible, JAXP allows you to use any XML-compliant parser from within your application. It does this with what is called a pluggability layer, which lets you plug in an implementation of the SAX or DOM API. The...

How To Read/Write Excel Sheet with Java Program

There are two good choices for reading & writing Microsoft Excel Spreadsheet files from Java, in a platform independent way, - jexcelapi and Jakarta POI (HSSF). Both of them provide nice interface to access Excel data structure and even generate new spreadsheet. I have done extensive tests with both of them for a high-profile project for a Fortune 500 company. Previously also I had successfully used HSSF for another high profile client. In the paragraphs below I present my conclusions and sample code for reading Excel spreadsheet from Java using both the libraries. Comparison of JExcelAPI with Jakarta-POI (HSSF) 1. JExcelAPI is clearly not suitable for important data. It fails to read several files. Even when it reads it fails on cells for unknown reasons. In short JExcelAPI isnt suitable for enterprise use. 2. HSSF is the POI Projects pure Java implementation of the Excel  97(-2002) file format. It is a mature product and was able to correctly and effortlessly read excel...

What is Android? How To Develop Androd Applications?

The Android platform is a software stack for mobile devices including an operating system, middleware and key applications. Developers can create applications for the platform using the Android SDK. Applications are written using the Java programming language and run on Dalvik, a custom virtual machine designed for embedded use which runs on top of a Linux kernel. If you want to know how to develop applications for Android, you're in the right place. This site provides a variety of documentation that will help you learn about Android and develop mobile applications for the platform. An early look at the the Android SDK is also available. It includes sample projects with source code, development tools, an emulator, and of course all the libraries you'll need to build an Android application. Download the SDK To start learning about the Android platform, please read the documentation in the following order: What is Android? - An overview of the Android platform Gett...

HCL Exclusive Hiring drive for Women Professionals!

HCL is organizing a walk-in drive in Bangalore / Hyderabad / Chennai / Noida between 9 A.M. and 2 P.M. on Saturday, April 9, 2011.   As fellow HCLites, you are well aware of our commitment to gender inclusion, and all policies and programs to support our female colleagues manage their work and life priorities.   We seek your help to reach out to your networks, and refer women (only) who have the skills and qualities we are looking for.   Please refer to the attached document for the relevant skill sets, years of experience and venue details.   In case of any query, please write to the respective email IDs mentioned below for each location.     Note: For the walk-in drive, candidates must carry the documents mentioned below: 1.       Hard copy of updated resume 2.       Last three months' salary slip 3.       One (1) passport-sized photo 4. ...