public synchronized void sync() throws IOException, BadDescriptorException { flushWrite(); }
public synchronized void sync() throws IOException, BadDescriptorException { flushWrite(); }
public synchronized void sync() throws IOException, BadDescriptorException { flushWrite(); }
public synchronized void sync() throws IOException, BadDescriptorException { flushWrite(); }
/** * Ensure buffer is ready for reading, flushing remaining writes if required * @throws IOException */ private void ensureRead() throws IOException, BadDescriptorException { if (reading) return; flushWrite(); buffer.clear(); buffer.flip(); reading = true; }
/** * Ensure buffer is ready for reading, flushing remaining writes if required * @throws IOException */ private void ensureRead() throws IOException, BadDescriptorException { if (reading) return; flushWrite(); buffer.clear(); buffer.flip(); reading = true; }
/** * Ensure buffer is ready for reading, flushing remaining writes if required * @throws IOException */ private void ensureRead() throws IOException, BadDescriptorException { if (reading) return; flushWrite(); buffer.clear(); buffer.flip(); reading = true; }
/** * Ensure buffer is ready for reading, flushing remaining writes if required * @throws IOException */ private void ensureRead() throws IOException, BadDescriptorException { if (reading) return; flushWrite(); buffer.clear(); buffer.flip(); reading = true; }
private void finish(boolean close) throws BadDescriptorException, IOException { try { flushWrite(); if (DEBUG) LOG.info("Descriptor for fileno {} closed by stream", descriptor.getFileno()); } finally { buffer = EMPTY_BUFFER; // clear runtime so it doesn't get stuck in memory (JRUBY-2933) runtime = null; // finish descriptor descriptor.finish(close); } }
private void finish(boolean close) throws BadDescriptorException, IOException { try { flushWrite(); if (DEBUG) LOG.info("Descriptor for fileno {} closed by stream", descriptor.getFileno()); } finally { buffer = EMPTY_BUFFER; // clear runtime so it doesn't get stuck in memory (JRUBY-2933) runtime = null; // finish descriptor descriptor.finish(close); } }
private void finish(boolean close) throws BadDescriptorException, IOException { try { flushWrite(); if (DEBUG) LOG.info("Descriptor for fileno {} closed by stream", descriptor.getFileno()); } finally { buffer = EMPTY_BUFFER; // clear runtime so it doesn't get stuck in memory (JRUBY-2933) runtime = null; // finish descriptor descriptor.finish(close); } }
private void finish(boolean close) throws BadDescriptorException, IOException { try { flushWrite(); if (DEBUG) LOG.info("Descriptor for fileno {} closed by stream", descriptor.getFileno()); } finally { buffer = EMPTY_BUFFER; // clear runtime so it doesn't get stuck in memory (JRUBY-2933) runtime = null; // finish descriptor descriptor.finish(close); } }
/** * @throws IOException * @throws BadDescriptorException */ public synchronized int fflush() throws IOException, BadDescriptorException { checkWritable(); try { flushWrite(); } catch (EOFException eofe) { return -1; } return 0; }
/** * @throws IOException * @throws BadDescriptorException */ public synchronized int fflush() throws IOException, BadDescriptorException { checkWritable(); try { flushWrite(); } catch (EOFException eofe) { return -1; } return 0; }
/** * @throws IOException * @throws BadDescriptorException */ public synchronized int fflush() throws IOException, BadDescriptorException { checkWritable(); try { flushWrite(); } catch (EOFException eofe) { return -1; } return 0; }
/** * @throws IOException * @throws BadDescriptorException */ public synchronized int fflush() throws IOException, BadDescriptorException { checkWritable(); try { flushWrite(); } catch (EOFException eofe) { return -1; } return 0; }
/** * @throws IOException * @throws BadDescriptorException */ private int bufferedWrite(int c) throws IOException, BadDescriptorException { checkWritable(); ensureWrite(); if (!buffer.hasRemaining()) flushWrite(); buffer.put((byte) c); if (isSync()) flushWrite(); return 1; }
/** * @throws IOException * @throws BadDescriptorException */ private int bufferedWrite(int c) throws IOException, BadDescriptorException { checkWritable(); ensureWrite(); if (!buffer.hasRemaining()) flushWrite(); buffer.put((byte) c); if (isSync()) flushWrite(); return 1; }
/** * @throws IOException * @throws BadDescriptorException */ private int bufferedWrite(int c) throws IOException, BadDescriptorException { checkWritable(); ensureWrite(); if (!buffer.hasRemaining()) flushWrite(); buffer.put((byte) c); if (isSync()) flushWrite(); return 1; }
/** * @throws IOException * @throws BadDescriptorException */ private int bufferedWrite(int c) throws IOException, BadDescriptorException { checkWritable(); ensureWrite(); if (!buffer.hasRemaining()) flushWrite(); buffer.put((byte) c); if (isSync()) flushWrite(); return 1; }