How can we get all repository files under a component from RTC stream using Client plain java libraries?

2 answers

Here is an example for a repository workspace: http://thescmlounge.blogspot.de/2013/08/getting-your-stuff-using-rtc-sdk-to-zip.html A stream is pretty much the same.
https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ has some more pointers to how to approach the API. There are also code examples in that blog.

I have download the RTC-Client-plainJavaLib-6.0.2,there is a folder snippets in it.The folder is the example code.
Maybe it can give you a hint.
1.IWorkspaceHandle
2.repo -> workspaceManager -> workspaceConnection -> componentHandle
3.IVersionableHandle
4.IVersionable
5.fileItem
6.IFileContent
And it is by bytestream to download a file from RTC.