public void write(OutputStream out, Object obj) { out.write_long(((Integer) obj).intValue()); } }
public void write( OutputStream os, Object value ) { Integer val = (Integer)value ; os.write_long( val.intValue() ) ; } } ;
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); }
protected void writeTemplate( OutputStream os ) { os.write_long( getMagic() ) ; os.write_long( getSubcontractId() ) ; os.write_long( getServerId() ) ; }
protected void writeTemplate( OutputStream os ) { os.write_long( getMagic() ) ; os.write_long( getSubcontractId() ) ; os.write_long( getServerId() ) ; } }
public void writeTemplate(OutputStream os) { os.write_long(getMagic()); os.write_long(getSubcontractId()); os.write_long(getServerId()); int orbid = Integer.parseInt(getORBId()); os.write_long(orbid); ObjectAdapterIdNumber oaid = (ObjectAdapterIdNumber) (getObjectAdapterId()); int poaid = oaid.getOldPOAId(); os.write_long(poaid); }
public void writeTemplate(OutputStream os) { os.write_long( getMagic() ) ; os.write_long( getSubcontractId() ) ; os.write_long( getServerId() ) ; int orbid = Integer.parseInt( getORBId() ) ; os.write_long( orbid ) ; ObjectAdapterIdNumber oaid = (ObjectAdapterIdNumber)(getObjectAdapterId()) ; int poaid = oaid.getOldPOAId() ; os.write_long( poaid ) ; }
/** * Helper method that is used to extract data from an output stream and write the data to another output stream. * Defined as static so that it can be used in another class. */ static public void writeOutputStream(OutputStream dataStream, OutputStream os) { byte[] data = ((CDROutputStream) dataStream).toByteArray(); os.write_long(data.length); os.write_octet_array(data, 0, data.length); }
public void write( OutputStream os ) { os.write_long( getNumLevels() ) ; Iterator iter = iterator() ; while (iter.hasNext()) { String str = (String)(iter.next()) ; os.write_string( str ) ; } } }
/** Helper method that is used to extract data from an output * stream and write the data to another output stream. Defined * as static so that it can be used in another class. */ static public void writeOutputStream( OutputStream dataStream, OutputStream os ) { byte[] data = ((CDROutputStream)dataStream).toByteArray() ; os.write_long( data.length ) ; os.write_octet_array( data, 0, data.length ) ; }
public void write( OutputStream os ) { os.write_long( size() ) ; Iterator iter = iterator() ; while (iter.hasNext()) { IORTemplate iortemp = (IORTemplate)(iter.next()) ; iortemp.write( os ) ; } }
/** * Helper method that is used to extract data from an output stream and write the data to another output stream. * Defined as static so that it can be used in another class. */ static public void writeOutputStream(OutputStream dataStream, OutputStream os) { byte[] data = ((CDROutputStream) dataStream).toByteArray(); os.write_long(data.length); os.write_octet_array(data, 0, data.length); }
public void write(OutputStream os) { os.write_long(getNumLevels()); Iterator<String> iter = iterator(); while (iter.hasNext()) { String str = iter.next(); os.write_string(str); } } }
public void write(OutputStream os) { os.write_long(getNumLevels()); Iterator<String> iter = iterator(); while (iter.hasNext()) { String str = iter.next(); os.write_string(str); } } }
public void writeTemplate(OutputStream os) { os.write_long(getMagic()); os.write_long(getSubcontractId()); os.write_long(getServerId()); os.write_string(getORBId()); getObjectAdapterId().write(os); } }
public void exitWriteObject(OutputStreamHook stream) throws IOException { // We only wrote default data, so if in stream format // version 2, put the null indicator to say that there // is no optional data if (stream.getStreamFormatVersion() == 2) stream.getOrbStream().write_long(0); stream.setState(NOT_IN_WRITE_OBJECT); }
public void exitWriteObject(OutputStreamHook stream) throws IOException { // We only wrote default data, so if in stream format // version 2, put the null indicator to say that there // is no optional data if (stream.getStreamFormatVersion() == 2) stream.getOrbStream().write_long(0); stream.setState(NOT_IN_WRITE_OBJECT); }
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 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 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); }