org.omg.CORBA.Any.create_input_stream()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中org.omg.CORBA.Any.create_input_stream()方法的一些代码示例,展示了Any.create_input_stream()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Any.create_input_stream()方法的具体详情如下:
包路径:org.omg.CORBA.Any
类名称:Any
方法名:create_input_stream

Any.create_input_stream介绍

暂无

代码示例

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.ssl.SSLPolicyValue extract (final org.omg.CORBA.Any any)
{
  org.omg.CORBA.portable.InputStream in = any.create_input_stream();
  try
  {
    return read (in);
  }
  finally
  {
    try
    {
      in.close();
    }
    catch (java.io.IOException e)
    {
    throw new RuntimeException("Unexpected exception " + e.toString() );
    }
  }
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.tao_imr.ImplementationRepository.ServerInformation[] extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.transport.NoContext extract (final org.omg.CORBA.Any any)
{
  org.omg.CORBA.portable.InputStream in = any.create_input_stream();
  try
  {
    return read (in);
  }
  finally
  {
    try
    {
      in.close();
    }
    catch (java.io.IOException e)
    {
    throw new RuntimeException("Unexpected exception " + e.toString() );
    }
  }
}

代码示例来源:origin: org.jacorb/jacorb

public static java.lang.String[] extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.tao_imr.ImplementationRepository.ServerInformation extract (final org.omg.CORBA.Any any)
{
  org.omg.CORBA.portable.InputStream in = any.create_input_stream();
  try
  {
    return read (in);
  }
  finally
  {
    try
    {
      in.close();
    }
    catch (java.io.IOException e)
    {
    throw new RuntimeException("Unexpected exception " + e.toString() );
    }
  }
}

代码示例来源:origin: org.jacorb/jacorb

public static java.lang.String[] extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.imr.AdminPackage.UnknownHostName extract (final org.omg.CORBA.Any any)
{
  org.omg.CORBA.portable.InputStream in = any.create_input_stream();
  try
  {
    return read (in);
  }
  finally
  {
    try
    {
      in.close();
    }
    catch (java.io.IOException e)
    {
    throw new RuntimeException("Unexpected exception " + e.toString() );
    }
  }
}

代码示例来源:origin: org.jacorb/jacorb

public static java.lang.String extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.tao_imr.ImplementationRepository.ServerActiveStatus extract (final org.omg.CORBA.Any any)
{
  org.omg.CORBA.portable.InputStream in = any.create_input_stream();
  try
  {
    return read (in);
  }
  finally
  {
    try
    {
      in.close();
    }
    catch (java.io.IOException e)
    {
    throw new RuntimeException("Unexpected exception " + e.toString() );
    }
  }
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.imr.HostInfo[] extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.tao_imr.ImplementationRepository.StartupOptions extract (final org.omg.CORBA.Any any)
{
  org.omg.CORBA.portable.InputStream in = any.create_input_stream();
  try
  {
    return read (in);
  }
  finally
  {
    try
    {
      in.close();
    }
    catch (java.io.IOException e)
    {
    throw new RuntimeException("Unexpected exception " + e.toString() );
    }
  }
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.imr.POAInfo[] extract (final org.omg.CORBA.Any any)
{
  if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
  {
    throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
  }
  return read (any.create_input_stream ());
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.imr.ImRInfo extract (final org.omg.CORBA.Any any)
{
  org.omg.CORBA.portable.InputStream in = any.create_input_stream();
  try
  {
    return read (in);
  }
  finally
  {
    try
    {
      in.close();
    }
    catch (java.io.IOException e)
    {
    throw new RuntimeException("Unexpected exception " + e.toString() );
    }
  }
}

代码示例来源:origin: org.apache.yoko/yoko-spec-corba

public static String
extract(org.omg.CORBA.Any any)
{
  if(any.type().equivalent(type()))
    return read(any.create_input_stream());
  else
    throw new org.omg.CORBA.BAD_OPERATION();
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.imr.AdminPackage.IllegalServerName extract (final org.omg.CORBA.Any any)
{
  org.omg.CORBA.portable.InputStream in = any.create_input_stream();
  try
  {
    return read (in);
  }
  finally
  {
    try
    {
      in.close();
    }
    catch (java.io.IOException e)
    {
    throw new RuntimeException("Unexpected exception " + e.toString() );
    }
  }
}

代码示例来源:origin: org.apache.yoko/yoko-spec-corba

public static INVALID_TRANSACTION extract(Any any) {
  if (any.type().equivalent(type()))
    return read(any.create_input_stream());
  else
    throw new BAD_OPERATION();
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.tao_imr.ImplementationRepository.CannotComplete extract (final org.omg.CORBA.Any any)
{
  org.omg.CORBA.portable.InputStream in = any.create_input_stream();
  try
  {
    return read (in);
  }
  finally
  {
    try
    {
      in.close();
    }
    catch (java.io.IOException e)
    {
    throw new RuntimeException("Unexpected exception " + e.toString() );
    }
  }
}

代码示例来源:origin: org.apache.yoko/yoko-spec-corba

public static ReplyHeader_1_2
extract(org.omg.CORBA.Any any)
{
  if(any.type().equivalent(type()))
    return read(any.create_input_stream());
  else
    throw new org.omg.CORBA.BAD_OPERATION();
}

代码示例来源:origin: org.jacorb/jacorb

public static org.jacorb.imr.AdminPackage.FileOpFailed extract (final org.omg.CORBA.Any any)
{
  org.omg.CORBA.portable.InputStream in = any.create_input_stream();
  try
  {
    return read (in);
  }
  finally
  {
    try
    {
      in.close();
    }
    catch (java.io.IOException e)
    {
    throw new RuntimeException("Unexpected exception " + e.toString() );
    }
  }
}

代码示例来源:origin: org.apache.yoko/yoko-spec-corba

public static MsgType_1_1
extract(org.omg.CORBA.Any any)
{
  if(any.type().equivalent(type()))
    return read(any.create_input_stream());
  else
    throw new org.omg.CORBA.BAD_OPERATION();
}

相关文章