/** * Constructor, for subclasses * * @param bufferSize size of read buffer */ protected RandomAccessFile(int bufferSize) { file = null; readonly = true; init(bufferSize); }
/** * Set the buffer size. * If writing, call flush() first. * * @param bufferSize length in bytes */ public void setBufferSize(int bufferSize) { init(bufferSize); }
/** * Set the buffer size. * If writing, call flush() first. * * @param bufferSize length in bytes */ public void setBufferSize(int bufferSize) { init(bufferSize); }
/** * Constructor, for subclasses * * @param bufferSize size of read buffer */ protected RandomAccessFile(int bufferSize) { file = null; readonly = true; init(bufferSize); }
/** * Set the buffer size. * If writing, call flush() first. * * @param bufferSize length in bytes */ public void setBufferSize(int bufferSize) { init(bufferSize); }
/** * Set the buffer size. * If writing, call flush() first. * * @param bufferSize length in bytes */ public void setBufferSize(int bufferSize) { init(bufferSize); }
/** * Constructor, for subclasses * * @param bufferSize size of read buffer */ protected RandomAccessFile(int bufferSize) { file = null; readonly = true; init(bufferSize); }
/** * Constructor, for subclasses * * @param bufferSize size of read buffer */ protected RandomAccessFile(int bufferSize) { file = null; readonly = true; init(bufferSize); }
/** * 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); } }
/** * 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); } }
init(bufferSize);
init(bufferSize);