public void writeContents(OutputStream os) { addr.write(os); }
public void writeContents(OutputStream os) { addr.write(os); }
public synchronized boolean isLocal() { if (!checkedIsLocal) { checkedIsLocal = true; String host = proftemp.getPrimaryAddress().getHost(); cachedIsLocal = orb.isLocalHost(host) && orb.isLocalServerId(oktemp.getSubcontractId(), oktemp.getServerId()) && orb.getLegacyServerSocketManager().legacyIsLocalServerPort( proftemp.getPrimaryAddress().getPort()); } return cachedIsLocal; }
/** * Write out this IIOPProfileTemplateImpl only. */ public void writeContents(OutputStream os) { giopVersion.write(os); primary.write(os); if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence(this, os); }
public synchronized boolean isLocal() { if (!checkedIsLocal) { checkedIsLocal = true; String host = proftemp.getPrimaryAddress().getHost(); cachedIsLocal = orb.isLocalHost(host) && orb.isLocalServerId(oktemp.getSubcontractId(), oktemp.getServerId()) && orb.getLegacyServerSocketManager().legacyIsLocalServerPort( proftemp.getPrimaryAddress().getPort()); } return cachedIsLocal; }
/** * Write out this IIOPProfileTemplateImpl only. */ public void writeContents(OutputStream os) { giopVersion.write(os); primary.write(os); if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence(this, os); }
public void write(ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write(os); primary.write(os); // Note that this is NOT an encapsulation: do not marshal the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = new EncapsOutputStream((ORB) os.orb(), ((CDROutputStream) os).isLittleEndian()); okeyTemplate.write(id, encapsulatedOS); EncapsulationUtility.writeOutputStream(encapsulatedOS, os); if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence(this, os); }
public void write(ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write(os); primary.write(os); // Note that this is NOT an encapsulation: do not marshal the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = new EncapsOutputStream((ORB) os.orb(), ((CDROutputStream) os).isLittleEndian()); okeyTemplate.write(id, encapsulatedOS); EncapsulationUtility.writeOutputStream(encapsulatedOS, os); if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence(this, os); }