See the attached Beanshell Macro. When using line 22 instead 23, the script doesn't work anymore. This is probably because InputStreamToXInputStreamAdapter doesn't implement XSeekable (while ByteArrayToXInputStreamAdapter does)
Created attachment 122440 [details] Beanshell Macro
Created C:/test.odt to test. Confirmed that with line 23, it opens test.odt. With 23 commented out and 22 enabled, it doesn't open test.odt. Win 7 Pro 64-bit Version: 5.2.0.0.alpha0+ Build ID: a6f876d45bd4e41a7143594a6cb11b6893a0f620 CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; TinderBox: Win-x86@39, Branch:master, Time: 2016-02-11_00:07:38 Locale: fi-FI (fi_FI)
How should the adapter implement XSeekable from a java.io.InputStream? It can only provide what is available: https://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html
The adapter cannot provide what the source doesn't offer in any way. Closing as invalid.