Top Methods
org.postgresql.copy

public Interface CopyOut

extends CopyOperation
Known Direct Subinterfaces
org.postgresql.copy.CopyDual
Known Direct Implementers
org.postgresql.copy.PGCopyInputStream, org.postgresql.core.v3.CopyOutImpl
Imports
org.checkerframework.checker.nullness.qual.Nullable, java.sql.SQLException

Method Summary

Modifier and TypeMethod and Description
public @Nullable byte[]

Returns:

byte array received from server, null if server complete copy operation
readFromCopy
()

Blocks wait for a row of data to be received from server on an active copy operation.

public @Nullable byte[]

Returns:

byte array received from server, if pending message from server absent and use no blocking mode return null
readFromCopy
(boolean
true if need wait data from server otherwise false and will read pending message from server
block
)

Wait for a row of data to be received from server on an active copy operation.

Inherited from org.postgresql.copy.CopyOperation:
cancelCopygetFieldCountgetFieldFormatgetFormatgetHandledRowCountisActive

Method Detail

readFromCopyback to summary
public @Nullable byte[] readFromCopy() throws SQLException

Blocks wait for a row of data to be received from server on an active copy operation.

Returns:@Nullable byte[]

byte array received from server, null if server complete copy operation

Exceptions
SQLException:
if something goes wrong for example socket timeout
readFromCopyback to summary
public @Nullable byte[] readFromCopy(boolean block) throws SQLException

Wait for a row of data to be received from server on an active copy operation.

Parameters
block:boolean

true if need wait data from server otherwise false and will read pending message from server

Returns:@Nullable byte[]

byte array received from server, if pending message from server absent and use no blocking mode return null

Exceptions
SQLException:
if something goes wrong for example socket timeout