public Any decode_value(byte[] data, TypeCode tc)
throws FormatMismatch, TypeMismatch
{
final CDRInputStream in = new CDRInputStream(orb, data);
try
{
in.setGIOPMinor( giopMinor );
in.openEncapsulatedArray();
Any result = orb.create_any();
result.read_value(in, tc);
//not necessary, since stream is never used again
//in.closeEncasupaltion();
return result;
}
finally
{
in.close();
}
}