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

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

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

  1. /**
  2. * Flush all data buffers to disk.
  3. * @throws IOException
  4. */
  5. public void flush() throws IOException {
  6. raf.flush();
  7. }

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

  1. /**
  2. * Flush all data buffers to disk.
  3. * @throws IOException
  4. */
  5. public void flush() throws IOException {
  6. raf.flush();
  7. }

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

  1. /**
  2. * Flush all data buffers to disk.
  3. * @throws IOException
  4. */
  5. public void flush() throws IOException {
  6. raf.flush();
  7. }

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

  1. /**
  2. * Flush all data buffers to disk.
  3. * @throws IOException
  4. */
  5. public void flush() throws IOException {
  6. raf.flush();
  7. }

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

  1. /**
  2. * Flush all data buffers to disk.
  3. * @throws IOException
  4. */
  5. public void flush() throws IOException {
  6. raf.flush();
  7. }

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

  1. /**
  2. * Flush all data buffers to disk.
  3. * @throws IOException
  4. */
  5. public void flush() throws IOException {
  6. raf.flush();
  7. }

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

  1. @Override
  2. public void flush() throws java.io.IOException {
  3. if (raf != null) {
  4. raf.flush();
  5. header.writeNumrecs();
  6. raf.flush();
  7. }
  8. }

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

  1. @Override
  2. public void flush() throws java.io.IOException {
  3. if (raf != null) {
  4. raf.flush();
  5. header.writeNumrecs();
  6. raf.flush();
  7. }
  8. }

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

  1. public void flush() throws java.io.IOException {
  2. if (raf != null) {
  3. raf.flush();
  4. header.writeNumrecs();
  5. raf.flush();
  6. }
  7. }

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

  1. protected void readBuffer(long pos) throws IOException {
  2. // If the current buffer is modified, write it to disk.
  3. if (bufferModified) {
  4. flush();
  5. }
  6. bufferStart = pos;
  7. filePosition = pos;
  8. dataSize = read_(pos, buffer, 0, buffer.length);
  9. if (dataSize <= 0) {
  10. dataSize = 0;
  11. endOfFile = true;
  12. } else {
  13. endOfFile = false;
  14. }
  15. // Cache the position of the buffer end.
  16. dataEnd = bufferStart + dataSize;
  17. }

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

  1. protected void readBuffer(long pos) throws IOException {
  2. // If the current buffer is modified, write it to disk.
  3. if (bufferModified) {
  4. flush();
  5. }
  6. bufferStart = pos;
  7. filePosition = pos;
  8. dataSize = read_(pos, buffer, 0, buffer.length);
  9. if (dataSize <= 0) {
  10. dataSize = 0;
  11. endOfFile = true;
  12. } else {
  13. endOfFile = false;
  14. }
  15. // Cache the position of the buffer end.
  16. dataEnd = bufferStart + dataSize;
  17. }

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

  1. protected void readBuffer(long pos) throws IOException {
  2. // If the current buffer is modified, write it to disk.
  3. if (bufferModified) {
  4. flush();
  5. }
  6. bufferStart = pos;
  7. filePosition = pos;
  8. dataSize = read_(pos, buffer, 0, buffer.length);
  9. if (dataSize <= 0) {
  10. dataSize = 0;
  11. endOfFile = true;
  12. } else {
  13. endOfFile = false;
  14. }
  15. // Cache the position of the buffer end.
  16. dataEnd = bufferStart + dataSize;
  17. }

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

  1. protected void readBuffer(long pos) throws IOException {
  2. // If the current buffer is modified, write it to disk.
  3. if (bufferModified) {
  4. flush();
  5. }
  6. bufferStart = pos;
  7. filePosition = pos;
  8. dataSize = read_(pos, buffer, 0, buffer.length);
  9. if (dataSize <= 0) {
  10. dataSize = 0;
  11. endOfFile = true;
  12. } else {
  13. endOfFile = false;
  14. }
  15. // Cache the position of the buffer end.
  16. dataEnd = bufferStart + dataSize;
  17. }

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

  1. flush();

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

  1. flush();

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

  1. flush();

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

  1. flush();

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

  1. flush();

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

  1. flush();

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

  1. flush();

相关文章