final class ClobUtf8Writer
extends java.io.Writer
Clob
.Modifier and Type | Field and Description |
---|---|
private boolean |
closed |
private TemporaryClob |
control |
private long |
pos |
Constructor and Description |
---|
ClobUtf8Writer(TemporaryClob control,
long pos)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream.
|
void |
flush()
Flushes the stream.
|
void |
write(char[] cbuf,
int off,
int len)
Writes a portion of an array of characters to the CLOB value.
|
private TemporaryClob control
private long pos
private boolean closed
ClobUtf8Writer(TemporaryClob control, long pos)
control
- worker object for the CLOB valuepos
- initial byte position in the CLOB valuepublic void flush() throws java.io.IOException
Flushing the stream after close()
has been called will cause an
exception to be thrown.
Implementation note: In the current implementation, this is a
no-op. Flushing is left to the underlying stream(s). Note that when
programming against/with this class, always follow good practice and call
flush
.
flush
in interface java.io.Flushable
flush
in class java.io.Writer
java.io.IOException
- if the stream has been closedpublic void close()
Once the stream has been closed, further write
or
flush()
invocations will cause an IOException
to be
thrown. Closing a previously closed stream has no effect.
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
cbuf
- array of charactersoff
- offset into cbuf
from which to start writing
characterslen
- number of characters to writejava.io.IOException
- if an I/O error occursApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.