本文整理了Java中org.omg.CORBA_2_3.portable.OutputStream
类的一些代码示例,展示了OutputStream
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputStream
类的具体详情如下:
包路径:org.omg.CORBA_2_3.portable.OutputStream
类名称:OutputStream
暂无
代码示例来源:origin: wildfly/wildfly
public void write(OutputStream out, Object obj) {
out.write_value((String) obj, String.class);
}
}
代码示例来源:origin: wildfly/wildfly
public void write(OutputStream out, Object obj) {
out.write_long(((Integer) obj).intValue());
}
}
代码示例来源:origin: wildfly/wildfly
public void write(OutputStream out, Object obj) {
out.write_abstract_interface(obj);
}
}
代码示例来源:origin: wildfly/wildfly
/**
* Writes an exception to a CDR output stream.
*/
public void write(OutputStream out, Object excep) {
if (writeMethod != null) {
try {
writeMethod.invoke(null, new Object[]{out, excep});
} catch (IllegalAccessException e) {
throw IIOPLogger.ROOT_LOGGER.unexpectedException(e);
} catch (java.lang.reflect.InvocationTargetException e) {
throw IIOPLogger.ROOT_LOGGER.errorMarshaling(IDLEntity.class, e.getTargetException());
}
} else {
out.write_string(reposId);
out.write_value((Exception) excep, clz);
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb-jdk9-supplement
case 'B':
byte byteValue = bridge.getByte(o, fields[i].getFieldID()) ;
orbStream.write_octet(byteValue);
break;
case 'C':
char charValue = bridge.getChar(o, fields[i].getFieldID()) ;
orbStream.write_wchar(charValue);
break;
case 'F':
float floatValue = bridge.getFloat(o, fields[i].getFieldID()) ;
orbStream.write_float(floatValue);
break;
case 'D' :
double doubleValue = bridge.getDouble(o, fields[i].getFieldID()) ;
orbStream.write_double(doubleValue);
break;
case 'I':
int intValue = bridge.getInt(o, fields[i].getFieldID()) ;
orbStream.write_long(intValue);
break;
case 'J':
long longValue = bridge.getLong(o, fields[i].getFieldID()) ;
orbStream.write_longlong(longValue);
break;
case 'S':
short shortValue = bridge.getShort(o, fields[i].getFieldID()) ;
orbStream.write_short(shortValue);
break;
case 'Z':
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb-jdk9-supplement
public void exitWriteObject(OutputStreamHook stream) throws IOException {
// We didn't write any data, so write the
// called defaultWriteObject indicator as false
stream.getOrbStream().write_boolean(false);
// If we're in stream format verison 2, we must
// put the "null" marker to say that there isn't
// any optional data
if (stream.getStreamFormatVersion() == 2)
stream.getOrbStream().write_long(0);
stream.setState(NOT_IN_WRITE_OBJECT);
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void write( OutputStream os )
{
os.write_long( getNumLevels() ) ;
Iterator iter = iterator() ;
while (iter.hasNext()) {
String str = (String)(iter.next()) ;
os.write_string( str ) ;
}
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void write( OutputStream os )
{
os.write_string( getHost() ) ;
int port = getPort() ;
os.write_short( intToShort( port ) ) ;
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
((org.omg.CORBA_2_3.portable.OutputStream)s).write_value((Serializable)o);
break;
((org.omg.CORBA_2_3.portable.OutputStream)s).write_abstract_interface(o);
break;
代码示例来源:origin: wildfly/wildfly
public void write(OutputStream out, Object obj) {
out.write_longlong(((Long) obj).longValue());
}
}
代码示例来源:origin: wildfly/wildfly
public void write(OutputStream out, Object obj) {
out.write_float(((Float) obj).floatValue());
}
}
代码示例来源:origin: wildfly/wildfly
public void write(OutputStream out, Object obj) {
out.write_double(((Double) obj).doubleValue());
}
}
代码示例来源:origin: wildfly/wildfly
public void write(OutputStream out, Object obj) {
out.write_octet(((Byte) obj).byteValue());
}
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
public void write(OutputStream os, GIOPVersion gv) throws SystemException
{
os.write_long(id);
os.write_long(data.length);
os.write_octet_array(data, 0, data.length);
}
代码示例来源:origin: wildfly/wildfly
public void write(OutputStream out, Object obj) {
out.write_short(((Short) obj).shortValue());
}
}
代码示例来源:origin: wildfly/wildfly
public void write(OutputStream out, Object obj) {
out.write_boolean(((Boolean) obj).booleanValue());
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void write(OutputStream os)
{
os.write_string( typeId ) ;
EncapsulationUtility.writeIdentifiableSequence( this, os ) ;
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
public void write(OutputStream os, Exception ex)
{
os.write_string(getId());
os.write_value(ex, getExceptionClass());
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void exitWriteObject(OutputStreamHook stream) throws IOException {
// We didn't write any data, so write the
// called defaultWriteObject indicator as false
stream.getOrbStream().write_boolean(false);
// If we're in stream format verison 2, we must
// put the "null" marker to say that there isn't
// any optional data
if (stream.getStreamFormatVersion() == 2)
stream.getOrbStream().write_long(0);
stream.setState(NOT_IN_WRITE_OBJECT);
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
public void write(OutputStream os)
{
os.write_long(getNumLevels());
Iterator<String> iter = iterator();
while (iter.hasNext())
{
String str = iter.next();
os.write_string(str);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!