Package org.jdbi.v3.core.argument
Class InputStreamArgument
java.lang.Object
org.jdbi.v3.core.argument.InputStreamArgument
- All Implemented Interfaces:
- Argument
Bind an input stream as either an ASCII (discouraged) or binary stream.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(int position, PreparedStatement statement, StatementContext ctx) Apply the argument to the given prepared statement.toString()
- 
Constructor Details- 
InputStreamArgument- Parameters:
- stream- the stream to bind
- length- the length of the stream
- ascii- true if the stream is ASCII
 
 
- 
- 
Method Details- 
applypublic void apply(int position, PreparedStatement statement, StatementContext ctx) throws SQLException Description copied from interface:ArgumentApply the argument to the given prepared statement.- Specified by:
- applyin interface- Argument
- Parameters:
- position- the position to which the argument should be bound, using the stupid JDBC "start at 1" bit
- statement- the prepared statement the argument is to be bound to
- ctx- the statement context
- Throws:
- SQLException- if anything goes wrong
 
- 
toString
 
-