本文整理了Java中org.omg.CORBA_2_3.portable.InputStream.read_value()
方法的一些代码示例,展示了InputStream.read_value()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InputStream.read_value()
方法的具体详情如下:
包路径:org.omg.CORBA_2_3.portable.InputStream
类名称:InputStream
方法名:read_value
暂无
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return in.read_value(String.class);
}
}
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return in.read_value(clz);
}
}
代码示例来源:origin: wildfly/wildfly
/**
* Reads an exception from a CDR input stream.
*/
public Exception read(InputStream in) {
if (readMethod != null) {
try {
return (Exception) readMethod.invoke(null, new Object[]{in});
} catch (IllegalAccessException e) {
throw IIOPLogger.ROOT_LOGGER.unexpectedException(e);
} catch (java.lang.reflect.InvocationTargetException e) {
throw IIOPLogger.ROOT_LOGGER.errorUnmarshaling(IDLEntity.class, e.getTargetException());
}
} else {
in.read_string(); // read and discard the repository id
return (Exception) in.read_value(clz);
}
}
代码示例来源:origin: org.jacorb/jacorb-omgapi
public static org.omg.Messaging.ExceptionHolder read (org.omg.CORBA.portable.InputStream is)
{
return (org.omg.Messaging.ExceptionHolder)((org.omg.CORBA_2_3.portable.InputStream)is).read_value ("IDL:omg.org/Messaging/ExceptionHolder:1.0");
}
public static void write (org.omg.CORBA.portable.OutputStream os, org.omg.Messaging.ExceptionHolder val)
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public static String read (org.omg.CORBA.portable.InputStream istream)
{
if (!(istream instanceof org.omg.CORBA_2_3.portable.InputStream)) {
throw new org.omg.CORBA.BAD_PARAM(); }
return (String) ((org.omg.CORBA_2_3.portable.InputStream) istream).read_value (_instance);
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static java.io.Serializable read(
org.omg.CORBA.portable.InputStream in) {
org.omg.CORBA_2_3.portable.InputStream in_2_3 = (org.omg.CORBA_2_3.portable.InputStream) in;
return in_2_3.read_value(id());
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public static byte[] read(org.omg.CORBA.portable.InputStream istream) {
if (!(istream instanceof org.omg.CORBA_2_3.portable.InputStream)) {
throw new org.omg.CORBA.BAD_PARAM();
}
return (byte[])((org.omg.CORBA_2_3.portable.InputStream)istream).read_value(_instance);
}
代码示例来源:origin: org.apache.yoko/yoko-core
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new IMRORT_impl());
}
}
代码示例来源:origin: org.apache.yoko/yoko-core
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new UnlimitedPingPolicy_impl());
}
}
代码示例来源:origin: org.apache.yoko/yoko-core
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new LimitedPingPolicy_impl());
}
}
代码示例来源:origin: org.apache.yoko/yoko-core
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream in) {
return in.read_value(new ExceptionHolder_impl());
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public static String read (org.omg.CORBA.portable.InputStream istream)
{
if (!(istream instanceof org.omg.CORBA_2_3.portable.InputStream)) {
throw new org.omg.CORBA.BAD_PARAM(); }
return (String) ((org.omg.CORBA_2_3.portable.InputStream) istream).read_value (_instance);
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
public Exception read(InputStream is)
{
is.read_string(); // read and ignore!
return (Exception) is.read_value(getExceptionClass());
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public Exception read( InputStream is )
{
is.read_string() ; // read and ignore!
return (Exception)is.read_value( getExceptionClass() ) ;
}
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static Pollable
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (Pollable)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static _ExceptionHolder
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (_ExceptionHolder)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
代码示例来源:origin: org.apache.yoko/yoko-spec-corba
public static ObjectReferenceFactory
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream))
throw new org.omg.CORBA.BAD_PARAM();
return (ObjectReferenceFactory)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
private OutputStream executeCommand__org_omg_boxedRMI_seq1_octet(org.omg.CORBA_2_3.portable.InputStream in , ResponseHandler reply) throws Throwable {
byte[] arg0 = (byte[]) in.read_value(byte[].class);
Object result = target.executeCommand(arg0);
OutputStream out = reply.createReply();
Util.writeAny(out,result);
return out;
}
}
代码示例来源:origin: org.apache.yoko/yoko-core
public static PersistentORT
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream)) {
throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes
.describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType),
org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType,
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
return (PersistentORT)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
代码示例来源:origin: org.apache.yoko/yoko-core
public static IMRORT
read(org.omg.CORBA.portable.InputStream in)
{
if(!(in instanceof org.omg.CORBA_2_3.portable.InputStream)) {
throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes
.describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType),
org.apache.yoko.orb.OB.MinorCodes.MinorIncompatibleObjectType,
org.omg.CORBA.CompletionStatus.COMPLETED_NO);
}
return (IMRORT)((org.omg.CORBA_2_3.portable.InputStream)in).read_value(id());
}
内容来源于网络,如有侵权,请联系作者删除!