/** Forces any buffered output to be written. */ protected void flush() throws IOException { setFileLength(); }
/** Forces any buffered output to be written. */ protected void flush() throws IOException { setFileLength(); }
/** Forces any buffered output to be written. */ protected void flush() throws IOException { setFileLength(); }
@Override public void flush() throws IOException { setFileLength(); }
/** Forces any buffered output to be written. */ protected void flush() throws IOException { setFileLength(); }
public void seek(long pos) throws IOException { // set the file length in case we seek back // and flush() has not been called yet setFileLength(); if (pos < bufferStart || pos >= bufferStart + bufferLength) { currentBufferIndex = (int) (pos / BUFFER_SIZE); switchCurrentBuffer(); } bufferPosition = (int) (pos % BUFFER_SIZE); }
public void flush() throws IOException { file.setLastModified(System.currentTimeMillis()); setFileLength(); }
public void seek(long pos) throws IOException { // set the file length in case we seek back // and flush() has not been called yet setFileLength(); if (pos < bufferStart || pos >= bufferStart + bufferLength) { currentBufferIndex = (int) (pos / BUFFER_SIZE); switchCurrentBuffer(); } bufferPosition = (int) (pos % BUFFER_SIZE); }
@Override public void seek(long pos) throws IOException { // set the file length in case we seek back // and flush() has not been called yet setFileLength(); if (pos < bufferStart || pos >= bufferStart + bufferLength) { currentBufferIndex = (int) (pos / BUFFER_SIZE); switchCurrentBuffer(); } bufferPosition = (int) (pos % BUFFER_SIZE); }
public void flush() throws IOException { file.setLastModified(System.currentTimeMillis()); setFileLength(); }