public void write(OutputStream out, Object obj) { out.write_value((String) obj, String.class); } }
public void write(OutputStream out, Object obj) { out.write_long(((Integer) obj).intValue()); } }
public void write(OutputStream out, Object obj) { out.write_abstract_interface(obj); } }
/** * 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); } }
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':
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); }
public void write( OutputStream os ) { os.write_long( getNumLevels() ) ; Iterator iter = iterator() ; while (iter.hasNext()) { String str = (String)(iter.next()) ; os.write_string( str ) ; } } }
public void write( OutputStream os ) { os.write_string( getHost() ) ; int port = getPort() ; os.write_short( intToShort( port ) ) ; }
((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;
public void write(OutputStream out, Object obj) { out.write_longlong(((Long) obj).longValue()); } }
public void write(OutputStream out, Object obj) { out.write_float(((Float) obj).floatValue()); } }
public void write(OutputStream out, Object obj) { out.write_double(((Double) obj).doubleValue()); } }
public void write(OutputStream out, Object obj) { out.write_octet(((Byte) obj).byteValue()); } }
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); }
public void write(OutputStream out, Object obj) { out.write_short(((Short) obj).shortValue()); } }
public void write(OutputStream out, Object obj) { out.write_boolean(((Boolean) obj).booleanValue()); } }
public void write(OutputStream os) { os.write_string( typeId ) ; EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
public void write(OutputStream os, Exception ex) { os.write_string(getId()); os.write_value(ex, getExceptionClass()); }
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); }
public void write(OutputStream os) { os.write_long(getNumLevels()); Iterator<String> iter = iterator(); while (iter.hasNext()) { String str = iter.next(); os.write_string(str); } } }