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

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

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

RandomAccessFile.flush介绍

[英]Copy the contents of the buffer to the disk.
[中]将缓冲区的内容复制到磁盘。

代码示例

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

/**
 * Flush all data buffers to disk.
 * @throws IOException
 */
public void flush() throws IOException {
  raf.flush();
}

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

/**
* Flush all data buffers to disk.
* @throws IOException
*/
public void flush() throws IOException {
  raf.flush();
}

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

/**
* Flush all data buffers to disk.
* @throws IOException
*/
public void flush() throws IOException {
  raf.flush();
}

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

/**
 * Flush all data buffers to disk.
 * @throws IOException
 */
public void flush() throws IOException {
  raf.flush();
}

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

/**
* Flush all data buffers to disk.
* @throws IOException
*/
public void flush() throws IOException {
  raf.flush();
}

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

/**
 * Flush all data buffers to disk.
 * @throws IOException
 */
public void flush() throws IOException {
  raf.flush();
}

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

@Override
public void flush() throws java.io.IOException {
 if (raf != null) {
  raf.flush();
  header.writeNumrecs();
  raf.flush();
 }
}

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

@Override
public void flush() throws java.io.IOException {
 if (raf != null) {
  raf.flush();
  header.writeNumrecs();
  raf.flush();
 }
}

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

public void flush() throws java.io.IOException {
 if (raf != null) {
  raf.flush();
  header.writeNumrecs();
  raf.flush();
 }
}

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

protected void readBuffer(long pos) throws IOException {
 // If the current buffer is modified, write it to disk.
 if (bufferModified) {
  flush();
 }
 bufferStart = pos;
 filePosition = pos;
 dataSize = read_(pos, buffer, 0, buffer.length);
 if (dataSize <= 0) {
  dataSize = 0;
  endOfFile = true;
 } else {
  endOfFile = false;
 }
 // Cache the position of the buffer end.
 dataEnd = bufferStart + dataSize;
}

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

protected void readBuffer(long pos) throws IOException {
 // If the current buffer is modified, write it to disk.
 if (bufferModified) {
  flush();
 }
 bufferStart = pos;
 filePosition = pos;
 dataSize = read_(pos, buffer, 0, buffer.length);
 if (dataSize <= 0) {
  dataSize = 0;
  endOfFile = true;
 } else {
  endOfFile = false;
 }
 // Cache the position of the buffer end.
 dataEnd = bufferStart + dataSize;
}

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

protected void readBuffer(long pos) throws IOException {
 // If the current buffer is modified, write it to disk.
 if (bufferModified) {
  flush();
 }
 bufferStart = pos;
 filePosition = pos;
 dataSize = read_(pos, buffer, 0, buffer.length);
 if (dataSize <= 0) {
  dataSize = 0;
  endOfFile = true;
 } else {
  endOfFile = false;
 }
 // Cache the position of the buffer end.
 dataEnd = bufferStart + dataSize;
}

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

protected void readBuffer(long pos) throws IOException {
 // If the current buffer is modified, write it to disk.
 if (bufferModified) {
  flush();
 }
 bufferStart = pos;
 filePosition = pos;
 dataSize = read_(pos, buffer, 0, buffer.length);
 if (dataSize <= 0) {
  dataSize = 0;
  endOfFile = true;
 } else {
  endOfFile = false;
 }
 // Cache the position of the buffer end.
 dataEnd = bufferStart + dataSize;
}

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

flush();

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

flush();

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

flush();

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

flush();

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

flush();

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

flush();

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

flush();

相关文章