-
Notifications
You must be signed in to change notification settings - Fork 25
Implement inputstream codec #316
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
base: trunk
Are you sure you want to change the base?
Conversation
1602538
to
ff1c9da
Compare
ff1c9da
to
f5fe451
Compare
|
f5fe451
to
7c3913b
Compare
@@ -0,0 +1,153 @@ | |||
/* | |||
* Copyright 2023 asyncer.io projects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2025
|
||
@Override | ||
protected boolean doCanDecode(MySqlReadableMetadata metadata) { | ||
return metadata.getJavaType() == InputStream.class; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears that it can be decoded when metadata.isBinary()
|
||
@Override | ||
public boolean canEncode(Object value) { | ||
return value instanceof InputStream; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ByteArrayInputStream?
@@ -0,0 +1,68 @@ | |||
/* | |||
* Copyright 2023 asyncer.io projects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2025
@jchrys #314
Motivation:
Implement ByteArrayInputStreamCodec to support InputStream
Modification:
Add ByteArrayInputStreamCodec, Add Tests
Result:
Can support InpuStream for Parameter Binding