本文整理了Java中org.omg.CORBA_2_3.portable.InputStream
类的一些代码示例,展示了InputStream
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InputStream
类的具体详情如下:
包路径:org.omg.CORBA_2_3.portable.InputStream
类名称:InputStream
暂无
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return in.read_value(String.class);
}
}
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return new Integer(in.read_long());
}
}
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return in.read_abstract_interface();
}
}
代码示例来源: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.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
byte byteValue = orbStream.read_octet();
bridge.putByte(o, field.getFieldID(), byteValue);
boolean booleanValue = orbStream.read_boolean();
bridge.putBoolean(o, field.getFieldID(), booleanValue);
char charValue = orbStream.read_wchar();
bridge.putChar(o, field.getFieldID(), charValue);
short shortValue = orbStream.read_short();
bridge.putShort(o, field.getFieldID(), shortValue);
int intValue = orbStream.read_long();
bridge.putInt(o, field.getFieldID(), intValue);
long longValue = orbStream.read_longlong();
bridge.putLong(o, field.getFieldID(), longValue);
float floatValue = orbStream.read_float();
bridge.putFloat(o, field.getFieldID(), floatValue);
double doubleValue = orbStream.read_double();
bridge.putDouble(o, field.getFieldID(), doubleValue);
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
/** This constructor reads the template ONLY from the stream.
*/
public POAObjectKeyTemplate( ORB orb, int magic, int scid, InputStream is )
{
super( orb, magic, scid, is.read_long(), is.read_string(),
new ObjectAdapterIdArray( POANameHelper.read( is ) ) ) ;
setORBVersion( is ) ;
}
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return (org.omg.CORBA.Object) in.read_Object();
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public UnknownServiceContext( int id, InputStream is )
{
this.id = id ;
int len = is.read_long();
data = new byte[len];
is.read_octet_array(data,0,len);
}
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return new Float(in.read_float());
}
}
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return new Boolean(in.read_boolean());
}
}
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return new Long(in.read_longlong());
}
}
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return new Double(in.read_double());
}
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
public IIOPAddressImpl(InputStream is)
{
host = is.read_string();
short thePort = is.read_short();
port = shortToInt(thePort);
}
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
return new Byte(in.read_octet());
}
}
代码示例来源:origin: org.apache.yoko/yoko-core
public java.io.Serializable read_value(
org.omg.CORBA_2_3.portable.InputStream is) {
return is.read_string();
}
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
public IIOPProfileTemplateImpl(InputStream istr)
{
byte major = istr.read_octet();
byte minor = istr.read_octet();
giopVersion = GIOPVersion.getInstance(major, minor);
primary = new IIOPAddressImpl(istr);
orb = (ORB) (istr.orb());
// Handle any tagged components (if applicable)
if (minor > 0)
EncapsulationUtility.readIdentifiableSequence(this, orb.getTaggedComponentFactoryFinder(), istr);
makeImmutable();
}
代码示例来源: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.spec.javax.rmi/jboss-rmi-api_1.0_spec
/**
* This constructor reads the template ONLY from the stream.
*/
public POAObjectKeyTemplate(ORB orb, int magic, int scid, InputStream is)
{
super(orb, magic, scid, is.read_long(), is.read_string(), new ObjectAdapterIdArray(POANameHelper.read(is)));
setORBVersion(is);
}
代码示例来源:origin: wildfly/wildfly
public Object read(InputStream in) {
// The narrow() call downloads the stub from the codebase embedded
// within the IOR of the unmarshalled object.
return PortableRemoteObject.narrow(in.read_Object(), clz);
}
}
代码示例来源:origin: org.apache.yoko/yoko-rmi-impl
public float readFloat() throws java.io.IOException {
return in.read_float();
}
内容来源于网络,如有侵权,请联系作者删除!