org.omg.CORBA_2_3.portable.OutputStream.write_octet_array()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中org.omg.CORBA_2_3.portable.OutputStream.write_octet_array()方法的一些代码示例,展示了OutputStream.write_octet_array()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputStream.write_octet_array()方法的具体详情如下:
包路径:org.omg.CORBA_2_3.portable.OutputStream
类名称:OutputStream
方法名:write_octet_array

OutputStream.write_octet_array介绍

暂无

代码示例

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

public void write(ObjectId id, OutputStream os)
{
  byte[] key = id.getId();
  os.write_octet_array(key, 0, key.length);
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public void write( ObjectId id, OutputStream os )
{
  byte[] key = id.getId() ;
  os.write_octet_array( key, 0, key.length ) ;
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public final void write(byte b[], int off, int len) throws IOException{
  try{
    writeObjectState.writeData(this);
    orbStream.write_octet_array(b, off, len);
  } catch(Error e) {
    IOException ioexc = new IOException(e.getMessage());
    ioexc.initCause(e) ;
    throw ioexc ;
  }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb-jdk9-supplement

public final void write(byte b[], int off, int len) throws IOException{
  try{
    writeObjectState.writeData(this);
    orbStream.write_octet_array(b, off, len);
  } catch(Error e) {
    IOException ioexc = new IOException(e.getMessage());
    ioexc.initCause(e) ;
    throw ioexc ;
  }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb-jdk9-supplement

public final void write(byte b[]) throws IOException{
  try{
    writeObjectState.writeData(this);
    orbStream.write_octet_array(b, 0, b.length);
  } catch(Error e) {
    IOException ioexc = new IOException(e.getMessage());
    ioexc.initCause(e) ;
    throw ioexc ;
  }
}

代码示例来源:origin: jboss/jboss-javaee-specs

public void write(OutputStream os)
  {
    os.write_long(id.length);
    os.write_octet_array(id, 0, id.length);
  }
}

代码示例来源:origin: jboss/jboss-javaee-specs

public void write(ObjectId id, OutputStream os)
{
  byte[] key = id.getId();
  os.write_octet_array(key, 0, key.length);
}

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

public void write(OutputStream os)
  {
    os.write_long(id.length);
    os.write_octet_array(id, 0, id.length);
  }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public void write( OutputStream os )
  {
    os.write_long( id.length ) ;
    os.write_octet_array( id, 0, id.length ) ;
  }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public void write(OutputStream os)
{
  os.write_ulong( data.length ) ;
  os.write_octet_array( data, 0, data.length ) ;
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb-jdk9-supplement

public final void writeBytes(String data) throws IOException{
  try{
    writeObjectState.writeData(this);
    byte buf[] = data.getBytes();
    orbStream.write_octet_array(buf, 0, buf.length);
  } catch(Error e) {
    IOException ioexc = new IOException(e.getMessage());
    ioexc.initCause(e) ;
    throw ioexc ;
  }
}

代码示例来源:origin: org.apache.yoko/yoko-rmi-impl

public void write(byte[] arr, int off, int len) throws java.io.IOException {
  beforeWriteData();
  out.write_octet_array(arr, off, len);
}

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

public final void write(byte b[], int off, int len) throws IOException
{
  try
  {
    writeObjectState.writeData(this);
    orbStream.write_octet_array(b, off, len);
  }
  catch (Error e)
  {
    IOException ioexc = new IOException(e.getMessage());
    ioexc.initCause(e);
    throw ioexc;
  }
}

代码示例来源: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.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

/** 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 , GIOPVersion gv)
  throws SystemException
{
  os.write_long( id ) ;
  os.write_long( data.length ) ;
  os.write_octet_array( data, 0, data.length ) ;
}

代码示例来源:origin: jboss/jboss-javaee-specs

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: 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: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

/**
 * Write the service context to an output stream. This method must be used for writing the service context to a
 * request or reply header.
 */
public void write(OutputStream s, GIOPVersion gv) throws SystemException
{
  EncapsOutputStream os = new EncapsOutputStream((ORB) (s.orb()), gv);
  os.putEndian();
  writeData(os);
  byte[] data = os.toByteArray();
  s.write_long(getId());
  s.write_long(data.length);
  s.write_octet_array(data, 0, data.length);
}

相关文章