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

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

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

RandomAccessFile.init介绍

暂无

代码示例

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

/**
 * Constructor, for subclasses
 *
 * @param bufferSize size of read buffer
 */
protected RandomAccessFile(int bufferSize) {
 file = null;
 readonly = true;
 init(bufferSize);
}

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

/**
 * Set the buffer size.
 * If writing, call flush() first.
 *
 * @param bufferSize length in bytes
 */
public void setBufferSize(int bufferSize) {
 init(bufferSize);
}

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

/**
 * Set the buffer size.
 * If writing, call flush() first.
 *
 * @param bufferSize length in bytes
 */
public void setBufferSize(int bufferSize) {
 init(bufferSize);
}

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

/**
 * Constructor, for subclasses
 *
 * @param bufferSize size of read buffer
 */
protected RandomAccessFile(int bufferSize) {
 file = null;
 readonly = true;
 init(bufferSize);
}

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

/**
 * Set the buffer size.
 * If writing, call flush() first.
 *
 * @param bufferSize length in bytes
 */
public void setBufferSize(int bufferSize) {
 init(bufferSize);
}

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

/**
 * Set the buffer size.
 * If writing, call flush() first.
 *
 * @param bufferSize length in bytes
 */
public void setBufferSize(int bufferSize) {
 init(bufferSize);
}

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

/**
 * Constructor, for subclasses
 *
 * @param bufferSize size of read buffer
 */
protected RandomAccessFile(int bufferSize) {
 file = null;
 readonly = true;
 init(bufferSize);
}

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

/**
 * Constructor, for subclasses
 *
 * @param bufferSize size of read buffer
 */
protected RandomAccessFile(int bufferSize) {
 file = null;
 readonly = true;
 init(bufferSize);
}

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

/**
 * Constructor.
 *
 * @param location   location of the file
 * @param mode       same as for java.io.RandomAccessFile
 * @param bufferSize size of buffer to use.
 * @throws IOException on open error
 */
public RandomAccessFile(String location, String mode, int bufferSize) throws IOException {
 this.location = location;
 if (debugLeaks) {
  allFiles.add(location);
 }
 this.file = new java.io.RandomAccessFile(location, mode);
 this.readonly = mode.equals("r");
 init(bufferSize);
 if (debugLeaks) {
  openFiles.add(location);
  if (showOpen) System.out.println("  open " + location);
 }
}

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

/**
 * Constructor.
 *
 * @param location   location of the file
 * @param mode       same as for java.io.RandomAccessFile
 * @param bufferSize size of buffer to use.
 * @throws IOException on open error
 */
public RandomAccessFile(String location, String mode, int bufferSize) throws IOException {
 this.location = location;
 if (debugLeaks) {
  allFiles.add(location);
  if ((location.indexOf("01janN") >= 0) || (location.indexOf("02febN") >= 0))
   System.out.printf("HEY!%n");
 }
 this.file = new java.io.RandomAccessFile(location, mode);
 this.readonly = mode.equals("r");
 init(bufferSize);
 if (debugLeaks) {
  openFiles.add(location);
  if (showOpen) System.out.println("  open " + location);
 }
}

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

init(bufferSize);

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

init(bufferSize);

相关文章