/** * Ensures that data which is buffered within the underlying implementation * is written out to the appropriate device before returning. */ public void sync() throws SyncFailedException { try { if (Libcore.os.isatty(this)) { Libcore.os.tcdrain(this); } else { Libcore.os.fsync(this); } } catch (ErrnoException errnoException) { SyncFailedException sfe = new SyncFailedException(errnoException.getMessage()); sfe.initCause(errnoException); throw sfe; } }
/** * Force any changes out to the persistent store. * * @param metaData If true then this method is required to force changes to both the file's * content and metadata to be written to storage; otherwise, it need only force content changes * to be written. * * @exception IOException If an IO error occurs. */ public void sync( boolean metaData) throws IOException { try { getChannel().force( metaData); } catch( ClosedChannelException cce) { throw cce;} catch( IOException ioe) { SyncFailedException sne = new SyncFailedException( ioe.getMessage()); sne.initCause( ioe); throw sne; } } // end of sync }
/** * Force any changes out to the persistent store. * * @param metaData If true then this method is required to force changes to both the file's * content and metadata to be written to storage; otherwise, it need only force content changes * to be written. * * @exception IOException If an IO error occurs. */ public void sync( boolean metaData) throws IOException { try { getChannel().force( metaData); } catch( ClosedChannelException cce) { throw cce;} catch( IOException ioe) { SyncFailedException sne = new SyncFailedException( ioe.getMessage()); sne.initCause( ioe); throw sne; } } // end of sync }
/** * Force any changes out to the persistent store. * * @param metaData If true then this method is required to force changes to both the file's * content and metadata to be written to storage; otherwise, it need only force content changes * to be written. * * @exception IOException If an IO error occurs. */ public void sync( boolean metaData) throws IOException { try { getChannel().force( metaData); } catch( ClosedChannelException cce) { throw cce;} catch( IOException ioe) { SyncFailedException sne = new SyncFailedException( ioe.getMessage()); sne.initCause( ioe); throw sne; } } // end of sync }
/** * Ensures that data which is buffered within the underlying implementation * is written out to the appropriate device before returning. */ public void sync() throws SyncFailedException { try { if (Libcore.os.isatty(this)) { Libcore.os.tcdrain(this); } else { Libcore.os.fsync(this); } } catch (ErrnoException errnoException) { SyncFailedException sfe = new SyncFailedException(errnoException.getMessage()); sfe.initCause(errnoException); throw sfe; } }
/** * Ensures that data which is buffered within the underlying implementation * is written out to the appropriate device before returning. */ public void sync() throws SyncFailedException { try { if (Libcore.os.isatty(this)) { Libcore.os.tcdrain(this); } else { Libcore.os.fsync(this); } } catch (ErrnoException errnoException) { SyncFailedException sfe = new SyncFailedException(errnoException.getMessage()); sfe.initCause(errnoException); throw sfe; } }
/** * Ensures that data which is buffered within the underlying implementation * is written out to the appropriate device before returning. */ public void sync() throws SyncFailedException { try { if (Libcore.os.isatty(this)) { Libcore.os.tcdrain(this); } else { Libcore.os.fsync(this); } } catch (ErrnoException errnoException) { SyncFailedException sfe = new SyncFailedException(errnoException.getMessage()); sfe.initCause(errnoException); throw sfe; } }
/** * Ensures that data which is buffered within the underlying implementation * is written out to the appropriate device before returning. */ public void sync() throws SyncFailedException { try { if (Libcore.os.isatty(this)) { Libcore.os.tcdrain(this); } else { Libcore.os.fsync(this); } } catch (ErrnoException errnoException) { SyncFailedException sfe = new SyncFailedException(errnoException.getMessage()); sfe.initCause(errnoException); throw sfe; } }
/** * Ensures that data which is buffered within the underlying implementation * is written out to the appropriate device before returning. */ public void sync() throws SyncFailedException { try { if (Libcore.os.isatty(this)) { Libcore.os.tcdrain(this); } else { Libcore.os.fsync(this); } } catch (ErrnoException errnoException) { SyncFailedException sfe = new SyncFailedException(errnoException.getMessage()); sfe.initCause(errnoException); throw sfe; } }
/** * Ensures that data which is buffered within the underlying implementation * is written out to the appropriate device before returning. */ public void sync() throws SyncFailedException { try { if (Libcore.os.isatty(this)) { Libcore.os.tcdrain(this); } else { Libcore.os.fsync(this); } } catch (ErrnoException errnoException) { SyncFailedException sfe = new SyncFailedException(errnoException.getMessage()); sfe.initCause(errnoException); throw sfe; } }