Process tprc = executor.occupyOrNew();
OutputByteBuffer obb = null;
try {
long read_wait = Strings.parseIntegerNvl(
cntx.getPrmByFullName("read_wait"), 10000);// !!!
TimeoutInputStream tis = new TimeoutInputStream(tprc);
tis.setTimeout(read_wait);
tis.setLimitRead(cl);
tis.setCircleBufferSize(50);
tis.startReadSource(is);
obb = (cl <= 0) ? Process.getByteBuffer(8000, tis)
: Process.getByteBuffer(8000, tis, cl);
} catch (SysException e) {
e.printStackTrace();
tprc.interrupt();