String s = "cd bin\n"; byte bb[] = s.getBytes(); InputStream intt = new ByteArrayInputStream(bb); channel.setInputStream(new FilterInputStream(intt) { public int read(byte[] b, int off, int len) throws IOException { return in.read(b, off, (len > 1024 ? 1024 : len)); } });
String s = "cd bin\nls -l\n";
s
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)