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

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

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

  1. /**
  2. * Constructor, for subclasses
  3. *
  4. * @param bufferSize size of read buffer
  5. */
  6. protected RandomAccessFile(int bufferSize) {
  7. file = null;
  8. readonly = true;
  9. init(bufferSize);
  10. }

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

  1. /**
  2. * Set the buffer size.
  3. * If writing, call flush() first.
  4. *
  5. * @param bufferSize length in bytes
  6. */
  7. public void setBufferSize(int bufferSize) {
  8. init(bufferSize);
  9. }

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

  1. /**
  2. * Set the buffer size.
  3. * If writing, call flush() first.
  4. *
  5. * @param bufferSize length in bytes
  6. */
  7. public void setBufferSize(int bufferSize) {
  8. init(bufferSize);
  9. }

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

  1. /**
  2. * Constructor, for subclasses
  3. *
  4. * @param bufferSize size of read buffer
  5. */
  6. protected RandomAccessFile(int bufferSize) {
  7. file = null;
  8. readonly = true;
  9. init(bufferSize);
  10. }

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

  1. /**
  2. * Set the buffer size.
  3. * If writing, call flush() first.
  4. *
  5. * @param bufferSize length in bytes
  6. */
  7. public void setBufferSize(int bufferSize) {
  8. init(bufferSize);
  9. }

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

  1. /**
  2. * Set the buffer size.
  3. * If writing, call flush() first.
  4. *
  5. * @param bufferSize length in bytes
  6. */
  7. public void setBufferSize(int bufferSize) {
  8. init(bufferSize);
  9. }

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

  1. /**
  2. * Constructor, for subclasses
  3. *
  4. * @param bufferSize size of read buffer
  5. */
  6. protected RandomAccessFile(int bufferSize) {
  7. file = null;
  8. readonly = true;
  9. init(bufferSize);
  10. }

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

  1. /**
  2. * Constructor, for subclasses
  3. *
  4. * @param bufferSize size of read buffer
  5. */
  6. protected RandomAccessFile(int bufferSize) {
  7. file = null;
  8. readonly = true;
  9. init(bufferSize);
  10. }

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

  1. /**
  2. * Constructor.
  3. *
  4. * @param location location of the file
  5. * @param mode same as for java.io.RandomAccessFile
  6. * @param bufferSize size of buffer to use.
  7. * @throws IOException on open error
  8. */
  9. public RandomAccessFile(String location, String mode, int bufferSize) throws IOException {
  10. this.location = location;
  11. if (debugLeaks) {
  12. allFiles.add(location);
  13. }
  14. this.file = new java.io.RandomAccessFile(location, mode);
  15. this.readonly = mode.equals("r");
  16. init(bufferSize);
  17. if (debugLeaks) {
  18. openFiles.add(location);
  19. if (showOpen) System.out.println(" open " + location);
  20. }
  21. }

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

  1. /**
  2. * Constructor.
  3. *
  4. * @param location location of the file
  5. * @param mode same as for java.io.RandomAccessFile
  6. * @param bufferSize size of buffer to use.
  7. * @throws IOException on open error
  8. */
  9. public RandomAccessFile(String location, String mode, int bufferSize) throws IOException {
  10. this.location = location;
  11. if (debugLeaks) {
  12. allFiles.add(location);
  13. if ((location.indexOf("01janN") >= 0) || (location.indexOf("02febN") >= 0))
  14. System.out.printf("HEY!%n");
  15. }
  16. this.file = new java.io.RandomAccessFile(location, mode);
  17. this.readonly = mode.equals("r");
  18. init(bufferSize);
  19. if (debugLeaks) {
  20. openFiles.add(location);
  21. if (showOpen) System.out.println(" open " + location);
  22. }
  23. }

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

  1. init(bufferSize);

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

  1. init(bufferSize);

相关文章