return (TagElement) e;
}
private Object intReadValue() throws IOException
{
TagElement te = stack.peek();
System.out.printf( "readValue: %s\n", te );
String type = te.getAttr( null, ELEMENT_TYPE_ATTR );
if (type.equals( NULL_TYPE ))
return null;
if (type.equals( BOOLEAN_TYPE ))
return new Boolean( te.getCdataValue() );
if (type.equals( INTEGER_TYPE ))
return new Integer( te.getCdataValue() );
if (type.equals( LONG_TYPE ))
return new Long( te.getCdataValue() );
if (type.equals( FLOAT_TYPE ))
return new Float( te.getCdataValue() );
if (type.equals( DOUBLE_TYPE ))
return new Double( te.getCdataValue() );
if (type.equals( BYTES_TYPE ))
return string2bytes( te.getCdataValue() );
if (type.equals( STRING_TYPE ))
return te.getCdataValue();
if (type.equals( ARRAY_TYPE ))
return readArray(null);
if (type.equals( STRUCT_TYPE ))