MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / getExtInputStream

Method getExtInputStream

java/com/jcraft/jsch/Channel.java:210–225  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208 return in;
209 }
210 public InputStream getExtInputStream() throws IOException {
211 int max_input_buffer_size = 32*1024;
212 try {
213 max_input_buffer_size =
214 Integer.parseInt(getSession().getConfig("max_input_buffer_size"));
215 }
216 catch(Exception e){}
217 PipedInputStream in =
218 new MyPipedInputStream(
219 32*1024, // this value should be customizable.
220 max_input_buffer_size
221 );
222 boolean resizable = 32*1024<max_input_buffer_size;
223 io.setExtOutputStream(new PassiveOutputStream(in, resizable), false);
224 return in;
225 }
226 public OutputStream getOutputStream() throws IOException {
227
228 final Channel channel=this;

Callers 2

getErrStreamMethod · 0.80
getErrStreamMethod · 0.80

Calls 3

getSessionMethod · 0.95
getConfigMethod · 0.65
setExtOutputStreamMethod · 0.45

Tested by

no test coverage detected