@Override public void setIoOutputStream(IoOutputStream out) { this.out = new BufferedIoOutputStream("sftp out buffer", out); }
@Override public IoWriteFuture writePacket(Buffer buffer) throws IOException { if (isClosing()) { throw new EOFException("Closed"); } IoWriteFutureImpl future = new IoWriteFutureImpl(getId(), buffer); writes.add(future); startWriting(); return future; }
@SuppressWarnings("synthetic-access") private void finishWrite() { writes.remove(future); currentWrite.compareAndSet(future, null); try { startWriting(); } catch (IOException e) { log.error("finishWrite({}) failed ({}) re-start writing", out, e.getClass().getSimpleName()); } } });
@SuppressWarnings("synthetic-access") private void finishWrite() { writes.remove(future); currentWrite.compareAndSet(future, null); try { startWriting(); } catch (IOException e) { log.error("finishWrite({}) failed ({}) re-start writing", out, e.getClass().getSimpleName()); } } });
@Override public IoWriteFuture writePacket(Buffer buffer) throws IOException { if (isClosing()) { throw new EOFException("Closed"); } IoWriteFutureImpl future = new IoWriteFutureImpl(getId(), buffer); writes.add(future); startWriting(); return future; }
@Override public void setIoOutputStream(IoOutputStream out) { this.out = new BufferedIoOutputStream(out); }
@Override public void setIoErrorStream(IoOutputStream err) { this.err = new BufferedIoOutputStream(err); }
@Override public void setIoErrorStream(IoOutputStream err) { this.err = new BufferedIoOutputStream(err); }
@Override public void setIoOutputStream(IoOutputStream out) { this.out = new BufferedIoOutputStream(out); }
@Override public void setIoOutputStream(IoOutputStream out) { this.out = new BufferedIoOutputStream(out); }
@Override public void setIoErrorStream(IoOutputStream err) { this.err = new BufferedIoOutputStream(err); }