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

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

本文整理了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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

相关文章