Net (Ftp) How to call useful functions inside the java source

MMORETTI964

Member
Licensed User
Longtime User
I've seen the source of the Net library (overall for ftp), inside there are a lot of useful functions not wrapped by Net B4A lib.

It's possible to call these functions without making a spin off or another lib?

For example, to call a function to set RestartOffset, or other functions that could be useful (setting different timeout, ...) Maybe is possible initializing the Object by B4A, and then passing to Reflection / Java Object?

What do you think?

Thanks in advance.

Maurizio
 

agraham

Expert
Licensed User
Longtime User
Theoretically you (or at least I) could use the Reflection library to pick up the 'client' field from an FTPWrapper instance and play with it using Reflection or JavaObject. Most likely Reflection as JavaObject only see public fields and methods. There's not much knowledgeable and determined use of the Reflection library can't do but you will be very much on your own doing it!

EDIT: In-line Java might have a use case here as well.
 
Upvote 0
Top