InputStream transferTo

先日の oboe2uran.hatenablog.comJava9 以上なら、 java.io.InputStream.transferTo(OutputStream out) throws IOException 使えば、 List<String> list; // list に送信するものを入れてから try(ByteArrayOutputStream out = new ByteArrayOutputStream()){ ScriptExecutor.runStream(()->"python script/test.py" , ()->list.st</string>…