IBM FileNet ExtendedInputStream 示例
IBM FileNet ExtendedInputStream examples
我在 filenet-p8 中有一个大小为 40 MB 的文件。我看到从 v5.2.1 开始有一个新的 API ExtendedInputStream
谁能分享一个例子。我看到它不是具体的 class 那么我该如何扩展和使用它呢。
来自5.2.1 What's new for developers:
Using the new extended stream support, your application can more efficiently retrieve very large file content—such as video and audio content—from any point in the file. No changes are needed to existing applications that do not need this capability. For applications that do require this capability, you can cast the input stream returned from the current accessContentStream method (on the ContentTransfer, Document, and Annotation classes) to the new extended class to invoke the new operations.
所以看起来你会做这样的事情:
Document document = Factory.Document.fetchInstance(objectStore, pathToDocument, null);
ExtendedInputStream inputStream = (ExtendedInputStream) document.accessContentStream(arg0);
从那里您将可以访问上的新方法
ExtendedInputStream.
我在 filenet-p8 中有一个大小为 40 MB 的文件。我看到从 v5.2.1 开始有一个新的 API ExtendedInputStream
谁能分享一个例子。我看到它不是具体的 class 那么我该如何扩展和使用它呢。
来自5.2.1 What's new for developers:
Using the new extended stream support, your application can more efficiently retrieve very large file content—such as video and audio content—from any point in the file. No changes are needed to existing applications that do not need this capability. For applications that do require this capability, you can cast the input stream returned from the current accessContentStream method (on the ContentTransfer, Document, and Annotation classes) to the new extended class to invoke the new operations.
所以看起来你会做这样的事情:
Document document = Factory.Document.fetchInstance(objectStore, pathToDocument, null);
ExtendedInputStream inputStream = (ExtendedInputStream) document.accessContentStream(arg0);
从那里您将可以访问上的新方法 ExtendedInputStream.