ucar.unidata.io.RandomAccessFile.writeBytes()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(142)

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

RandomAccessFile.writeBytes介绍

[英]Writes the string to the file as a sequence of bytes. Each character in the string is written out, in sequence, by discarding its high eight bits.
[中]将字符串作为字节序列写入文件。字符串中的每个字符都是通过丢弃其高八位按顺序写出的。

代码示例

代码示例来源:origin: edu.ucar/cdm

  1. /**
  2. * Writes <code>b.length</code> bytes from the specified byte array
  3. * starting at offset <code>off</code> to this file.
  4. *
  5. * @param b the data.
  6. * @throws IOException if an I/O error occurs.
  7. */
  8. public void write(byte b[]) throws IOException {
  9. writeBytes(b, 0, b.length);
  10. }

代码示例来源:origin: Unidata/thredds

  1. /**
  2. * Writes <code>len</code> bytes from the specified byte array
  3. * starting at offset <code>off</code> to this file.
  4. *
  5. * @param b the data.
  6. * @param off the start offset in the data.
  7. * @param len the number of bytes to write.
  8. * @throws IOException if an I/O error occurs.
  9. */
  10. public void write(byte b[], int off, int len) throws IOException {
  11. writeBytes(b, off, len);
  12. }

代码示例来源:origin: edu.ucar/netcdf

  1. /**
  2. * Writes <code>b.length</code> bytes from the specified byte array
  3. * starting at offset <code>off</code> to this file.
  4. *
  5. * @param b the data.
  6. * @throws IOException if an I/O error occurs.
  7. */
  8. public void write(byte b[]) throws IOException {
  9. writeBytes(b, 0, b.length);
  10. }

代码示例来源:origin: edu.ucar/netcdf

  1. /**
  2. * Writes <code>len</code> bytes from the specified byte array
  3. * starting at offset <code>off</code> to this file.
  4. *
  5. * @param b the data.
  6. * @param off the start offset in the data.
  7. * @param len the number of bytes to write.
  8. * @throws IOException if an I/O error occurs.
  9. */
  10. public void write(byte b[], int off, int len) throws IOException {
  11. writeBytes(b, off, len);
  12. }

代码示例来源:origin: edu.ucar/cdm

  1. /**
  2. * Writes <code>len</code> bytes from the specified byte array
  3. * starting at offset <code>off</code> to this file.
  4. *
  5. * @param b the data.
  6. * @param off the start offset in the data.
  7. * @param len the number of bytes to write.
  8. * @throws IOException if an I/O error occurs.
  9. */
  10. public void write(byte b[], int off, int len) throws IOException {
  11. writeBytes(b, off, len);
  12. }

代码示例来源:origin: edu.ucar/unidataCommon

  1. /**
  2. * Writes <code>len</code> bytes from the specified byte array
  3. * starting at offset <code>off</code> to this file.
  4. *
  5. * @param b the data.
  6. * @param off the start offset in the data.
  7. * @param len the number of bytes to write.
  8. * @throws IOException if an I/O error occurs.
  9. */
  10. public void write(byte b[], int off, int len) throws IOException {
  11. writeBytes(b, off, len);
  12. }

代码示例来源:origin: Unidata/thredds

  1. /**
  2. * Writes <code>b.length</code> bytes from the specified byte array
  3. * starting at offset <code>off</code> to this file.
  4. *
  5. * @param b the data.
  6. * @throws IOException if an I/O error occurs.
  7. */
  8. public void write(byte b[]) throws IOException {
  9. writeBytes(b, 0, b.length);
  10. }

代码示例来源:origin: edu.ucar/unidataCommon

  1. /**
  2. * Writes <code>b.length</code> bytes from the specified byte array
  3. * starting at offset <code>off</code> to this file.
  4. *
  5. * @param b the data.
  6. * @throws IOException if an I/O error occurs.
  7. */
  8. public void write(byte b[]) throws IOException {
  9. writeBytes(b, 0, b.length);
  10. }

相关文章