Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

getStringCellValue() is depreciated .. any alternatives ?

807591Jun 2 2008 — edited Jun 2 2008
Sorry if i am posting this in a wrong location ,

I am using Apache POI framework for converting an excel document to XML

i am using the following classes
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
I am getting a row value as shown below
HSSFRow row1 = spreadsheet.getRow(1);
						Element revenueElement1 = document.createElement("title");
						startElement.appendChild(revenueElement1);
						String Value1=row1.getCell((short)1).getStringCellValue();
						revenueElement1.appendChild(document.createTextNode(Value1));
But the getStringCellValue(); function is showing depreciated in eclipse .. can any one please suggest any other way to get the string value of a cell ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 30 2008
Added on Jun 2 2008
1 comment
771 views