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

Remove EventStreamWriter implementation from mime #7440

Open
MohamedSabthar opened this issue Dec 4, 2024 · 0 comments
Open

Remove EventStreamWriter implementation from mime #7440

MohamedSabthar opened this issue Dec 4, 2024 · 0 comments

Comments

@MohamedSabthar
Copy link
Member

Current Limitation

With the new API introduced with Java 21 runtime migration, a EventStreamWriter Ballerina wrapper class is no longer required to write the event stream to a Java OutputStream. The EventStreamWriter implementation can be removed, and all functionality can be shifted to the native side, reducing the overhead calling extern methods between the Ballerina and Java sides.

Suggested Improvement

A class similar to this https://github.com/ballerina-platform/module-ballerina-crypto/blob/master/native/src/main/java/io/ballerina/stdlib/crypto/BallerinaInputStream.java can be implemented in the mime native side.

Version

No response

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

No branches or pull requests

1 participant