本文整理了Java中org.omg.CORBA_2_3.portable.OutputStream.write_long()
方法的一些代码示例,展示了OutputStream.write_long()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputStream.write_long()
方法的具体详情如下:
包路径:org.omg.CORBA_2_3.portable.OutputStream
类名称:OutputStream
方法名:write_long
暂无
代码示例来源:origin: wildfly/wildfly
public void write(OutputStream out, Object obj) {
out.write_long(((Integer) obj).intValue());
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void write( OutputStream os, Object value )
{
Integer val = (Integer)value ;
os.write_long( val.intValue() ) ;
}
} ;
代码示例来源: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: org.jboss.openjdk-orb/openjdk-orb
protected void writeTemplate( OutputStream os )
{
os.write_long( getMagic() ) ;
os.write_long( getSubcontractId() ) ;
os.write_long( getServerId() ) ;
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
protected void writeTemplate( OutputStream os )
{
os.write_long( getMagic() ) ;
os.write_long( getSubcontractId() ) ;
os.write_long( getServerId() ) ;
}
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
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);
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
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 ) ;
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
/**
* 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);
}
代码示例来源: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
/** 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 ) ;
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public void write( OutputStream os )
{
os.write_long( size() ) ;
Iterator iter = iterator() ;
while (iter.hasNext()) {
IORTemplate iortemp = (IORTemplate)(iter.next()) ;
iortemp.write( os ) ;
}
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* 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);
}
代码示例来源:origin: jboss/jboss-javaee-specs
public void write(OutputStream os)
{
os.write_long(getNumLevels());
Iterator<String> iter = iterator();
while (iter.hasNext())
{
String str = iter.next();
os.write_string(str);
}
}
}
代码示例来源: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);
}
}
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
public void writeTemplate(OutputStream os)
{
os.write_long(getMagic());
os.write_long(getSubcontractId());
os.write_long(getServerId());
os.write_string(getORBId());
getObjectAdapterId().write(os);
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
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);
}
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
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);
}
代码示例来源: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.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.spec.javax.rmi/jboss-rmi-api_1.0_spec
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);
}
内容来源于网络,如有侵权,请联系作者删除!