public class CopyInImpl extends CopyOperationImpl implements CopyIn
| Constructor and Description |
|---|
CopyInImpl() |
| 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[] data,
int off,
int siz)
Writes specified part of given byte array to an open and writable copy operation.
|
cancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, handleCommandStatus, isActiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelCopy, getFieldCount, getFieldFormat, getFormat, getHandledRowCount, isActivepublic void writeToCopy(byte[] data,
int off,
int siz)
throws SQLException
CopyInwriteToCopy in interface CopyIndata - array of bytes to writeoff - offset of first byte to write (normally zero)siz - number of bytes to write (normally buf.length)SQLException - if the operation failspublic void flushCopy()
throws SQLException
CopyInflushCopy in interface CopyInSQLException - if the operation fails.public long endCopy()
throws SQLException
CopyInendCopy in interface CopyInSQLException - if the operation fails.Copyright © 2016 PostgreSQL Global Development Group. All rights reserved.