Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect end of stream with onNewData #462

Closed
emendo-web opened this issue Dec 13, 2022 · 1 comment
Closed

Detect end of stream with onNewData #462

emendo-web opened this issue Dec 13, 2022 · 1 comment

Comments

@emendo-web
Copy link

Hello,

Thank you for this package.

From what I could see of this package how can I know that my data has all arrived before processing it?

With the onNewData method I receive data substitution

Would there be a solution to know when all the bytes received?

InputStream returned -1 if reading data is complete

Or is the only solution to detect a delimiter character and close the stream when found ?

Thanks,
Cyril

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants