本文整理了Java中ucar.unidata.io.RandomAccessFile.flush
方法的一些代码示例,展示了RandomAccessFile.flush
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RandomAccessFile.flush
方法的具体详情如下:
包路径:ucar.unidata.io.RandomAccessFile
类名称: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();
内容来源于网络,如有侵权,请联系作者删除!