public class ClobLocatorWriter extends Writer
Writer that will use an locator to write the
Clob value into the server.
This Writer implementation is pretty basic. No
buffering of data is done. Hence, for efficieny #write(char[])
should be used instead of #write(int).
| Constructor and Description |
|---|
ClobLocatorWriter(Connection connection,
Clob clob,
long pos)
Create a
Writer for writing to the
Clob value represented by the given locator based
Clob object. |
public ClobLocatorWriter(Connection connection, Clob clob, long pos) throws SqlException
Writer for writing to the
Clob value represented by the given locator based
Clob object.connection - connection to be used to write to the
Clob value on the serverclob - Clob object that contains locator for
the Clob value on the server.pos - the position in the CLOB value at which
to start writing; the first position is 1SqlExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionWriter.close()public void write(int c)
throws IOException
write in class WriterIOExceptionThis method writes one Character at a time to the server. For more
efficient writing, use #write(char[]).public void write(char[] c)
throws IOException
write in class WriterIOExceptionWriter.write(char[])public void flush()
flush in interface Flushableflush in class WriterWriter.flush()public void write(char[] c,
int off,
int len)
throws IOException
write in class WriterIOExceptionWriter.write(char[], int, int)Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.