Package com.mysql.cj.result
Class BinaryStreamValueFactory
java.lang.Object
com.mysql.cj.result.DefaultValueFactory<java.io.InputStream>
com.mysql.cj.result.BinaryStreamValueFactory
- All Implemented Interfaces:
ValueFactory<java.io.InputStream>
public class BinaryStreamValueFactory extends DefaultValueFactory<java.io.InputStream>
A value factory for a raw stream of bytes from the value.
-
Field Summary
Fields inherited from class com.mysql.cj.result.DefaultValueFactory
jdbcCompliantTruncationForReads, pset
-
Constructor Summary
Constructors Constructor Description BinaryStreamValueFactory(PropertySet pset)
-
Method Summary
Modifier and Type Method Description java.io.InputStream
createFromBytes(byte[] bytes, int offset, int length, Field f)
java.lang.String
getTargetTypeName()
Get the actual class name of T parameter.Methods inherited from class com.mysql.cj.result.DefaultValueFactory
createFromBigDecimal, createFromBigInteger, createFromBit, createFromDate, createFromDatetime, createFromDouble, createFromLong, createFromNull, createFromTime, createFromTimestamp, createFromYear, setPropertySet, unsupported
-
Constructor Details
-
Method Details
-
createFromBytes
-
getTargetTypeName
public java.lang.String getTargetTypeName()Description copied from interface:ValueFactory
Get the actual class name of T parameter.- Returns:
- class name
-