public Stream getMainStreamSafe() throws BadDescriptorException { Stream stream = mainStream; if (stream == null) throw new BadDescriptorException(); return stream; }
@Override public void flush() throws IOException { try { synchronized (stream) { stream.flushWrite(true); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
@Override public void flush() throws IOException { try { synchronized (stream) { stream.flushWrite(true); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
public Stream getPipeStreamSafe() throws BadDescriptorException { Stream stream = pipeStream; if (stream == null) throw new BadDescriptorException(); return stream; }
@Override public void flush() throws IOException { try { synchronized (stream) { stream.flushWrite(true); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
public Stream getPipeStreamSafe() throws BadDescriptorException { Stream stream = pipeStream; if (stream == null) throw new BadDescriptorException(); return stream; }
@Override public void flush() throws IOException { try { synchronized (stream) { stream.flushWrite(true); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
public Stream getWriteStreamSafe() throws BadDescriptorException { Stream stream = pipeStream == null ? mainStream : pipeStream; if (stream == null) throw new BadDescriptorException(); return stream; }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } }
public Stream getMainStreamSafe() throws BadDescriptorException { Stream stream = mainStream; if (stream == null) throw new BadDescriptorException(); return stream; }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } }
public Stream getWriteStreamSafe() throws BadDescriptorException { Stream stream = pipeStream == null ? mainStream : pipeStream; if (stream == null) throw new BadDescriptorException(); return stream; }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
/** * Check whether the isOpen returns true, raising a BadDescriptorException if * it returns false. * * @throws org.jruby.util.io.BadDescriptorException if isOpen returns false */ public void checkOpen() throws BadDescriptorException { if (!isOpen()) { throw new BadDescriptorException(); } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
/** * Check whether the isOpen returns true, raising a BadDescriptorException if * it returns false. * * @throws org.jruby.util.io.BadDescriptorException if isOpen returns false */ public void checkOpen() throws BadDescriptorException { if (!isOpen()) { throw new BadDescriptorException(); } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
/** * Check whether the isOpen returns true, raising a BadDescriptorException if * it returns false. * * @throws org.jruby.util.io.BadDescriptorException if isOpen returns false */ public void checkOpen() throws BadDescriptorException { if (!isOpen()) { throw new BadDescriptorException(); } }
@Override public void close() throws IOException { try { synchronized (stream) { stream.fclose(); } } catch (BadDescriptorException ex) { throw new IOException(ex.getMessage()); } } }
/** * Check whether the isOpen returns true, raising a BadDescriptorException if * it returns false. * * @throws org.jruby.util.io.BadDescriptorException if isOpen returns false */ public void checkOpen() throws BadDescriptorException { if (!isOpen()) { throw new BadDescriptorException(); } }