public interface CopyIn extends CopyOperation
Modifier and Type | Method and Description |
---|---|
long |
endCopy()
Finishes copy operation succesfully.
|
void |
flushCopy()
Force any buffered output to be sent over the network to the
backend.
|
void |
writeToCopy(byte[] buf,
int off,
int siz)
Writes specified part of given byte array to an open and writable copy operation.
|
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, isActive
void writeToCopy(byte[] buf, int off, int siz) throws java.sql.SQLException
buf
- array of bytes to writeoff
- offset of first byte to write (normally zero)siz
- number of bytes to write (normally buf.length)java.sql.SQLException
- if the operation failsvoid flushCopy() throws java.sql.SQLException
java.sql.SQLException
long endCopy() throws java.sql.SQLException
java.sql.SQLException
- if the operation fails.