public class StreamCodec extends Object implements Codec<InputStream>
| Modifier and Type | Field and Description |
|---|---|
static StreamCodec |
INSTANCE |
| Constructor and Description |
|---|
StreamCodec() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type) |
boolean |
canEncode(Object value) |
boolean |
canEncodeLongData() |
String |
className() |
InputStream |
decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column,
Calendar cal) |
InputStream |
decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf,
int length,
com.singlestore.jdbc.client.Column column,
Calendar cal) |
void |
encodeBinary(Writer encoder,
Object value,
Calendar cal,
Long maxLength) |
byte[] |
encodeData(InputStream value,
Long maxLength) |
void |
encodeLongData(Writer encoder,
InputStream value,
Long maxLength) |
void |
encodeText(Writer encoder,
com.singlestore.jdbc.client.Context context,
Object value,
Calendar cal,
Long maxLen) |
int |
getBinaryEncodeType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitencodeBinaryAsStringpublic static final StreamCodec INSTANCE
public String className()
className in interface Codec<InputStream>public boolean canDecode(com.singlestore.jdbc.client.Column column,
Class<?> type)
canDecode in interface Codec<InputStream>public InputStream decodeText(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, com.singlestore.jdbc.client.Column column, Calendar cal) throws SQLDataException
decodeText in interface Codec<InputStream>SQLDataExceptionpublic InputStream decodeBinary(com.singlestore.jdbc.client.ReadableByteBuf buf, int length, com.singlestore.jdbc.client.Column column, Calendar cal) throws SQLDataException
decodeBinary in interface Codec<InputStream>SQLDataExceptionpublic boolean canEncode(Object value)
canEncode in interface Codec<InputStream>public void encodeText(Writer encoder, com.singlestore.jdbc.client.Context context, Object value, Calendar cal, Long maxLen) throws IOException
encodeText in interface Codec<InputStream>IOExceptionpublic void encodeBinary(Writer encoder, Object value, Calendar cal, Long maxLength) throws IOException
encodeBinary in interface Codec<InputStream>IOExceptionpublic void encodeLongData(Writer encoder, InputStream value, Long maxLength) throws IOException
encodeLongData in interface Codec<InputStream>IOExceptionpublic byte[] encodeData(InputStream value, Long maxLength) throws IOException
encodeData in interface Codec<InputStream>IOExceptionpublic int getBinaryEncodeType()
getBinaryEncodeType in interface Codec<InputStream>public boolean canEncodeLongData()
canEncodeLongData in interface Codec<InputStream>Copyright © 2023 SingleStore. All rights reserved.