public WritableSharedFile(File file) throws IOException { super(file); try { raf = new RandomAccessFile(file, "rw"); } catch (IOException ex) { // if anything goes wrong opening the writable file, // close the readable file too super.close(); } }
/** * Close the readable and writable files. */ public void close() throws IOException { try { super.close(); } finally { raf.close(); } }
/** * Force this stream to close. */ protected void finalize() throws Throwable { super.finalize(); close(); } }
/** * Close the readable and writable files. */ @Override public void close() throws IOException { try { super.close(); } finally { raf.close(); } }
/** * Force this stream to close. */ @Override protected void finalize() throws Throwable { super.finalize(); close(); } }
public WritableSharedFile(File file) throws IOException { super(file); try { raf = new RandomAccessFile(file, "rw"); } catch (IOException ex) { // if anything goes wrong opening the writable file, // close the readable file too super.close(); } }
public WritableSharedFile(File file) throws IOException { super(file); try { raf = new RandomAccessFile(file, "rw"); } catch (IOException ex) { // if anything goes wrong opening the writable file, // close the readable file too super.close(); } }
/** * Force this stream to close. */ protected void finalize() throws Throwable { super.finalize(); close(); } }
/** * Force this stream to close. */ @Override protected void finalize() throws Throwable { super.finalize(); close(); } }
/** * Force this stream to close. */ @Override protected void finalize() throws Throwable { super.finalize(); close(); } }
/** * Force this stream to close. */ @Override protected void finalize() throws Throwable { super.finalize(); close(); } }
public WritableSharedFile(File file) throws IOException { super(file); try { raf = new RandomAccessFile(file, "rw"); } catch (IOException ex) { // if anything goes wrong opening the writable file, // close the readable file too super.close(); } }
public WritableSharedFile(File file) throws IOException { super(file); try { raf = new RandomAccessFile(file, "rw"); } catch (IOException ex) { // if anything goes wrong opening the writable file, // close the readable file too super.close(); } }
/** * Close the readable and writable files. */ @Override public void close() throws IOException { try { super.close(); } finally { raf.close(); } }
/** * Force this stream to close. */ @Override protected void finalize() throws Throwable { super.finalize(); close(); } }
public WritableSharedFile(File file) throws IOException { super(file); try { raf = new RandomAccessFile(file, "rw"); } catch (IOException ex) { // if anything goes wrong opening the writable file, // close the readable file too super.close(); } }
public WritableSharedFile(File file) throws IOException { super(file); try { raf = new RandomAccessFile(file, "rw"); } catch (IOException ex) { // if anything goes wrong opening the writable file, // close the readable file too super.close(); } }
/** * Close the readable and writable files. */ public void close() throws IOException { try { super.close(); } finally { raf.close(); } }
/** * Force this stream to close. */ @Override protected void finalize() throws Throwable { super.finalize(); close(); } }
/** * Close the readable and writable files. */ @Override public void close() throws IOException { try { super.close(); } finally { raf.close(); } }