java.io.Closeable
, java.io.Flushable
, java.lang.Appendable
, java.lang.AutoCloseable
final class ClobUtf8Writer
extends java.io.Writer
Clob
.Modifier and Type | Field | Description |
---|---|---|
private boolean |
closed |
|
private TemporaryClob |
control |
|
private long |
pos |
Constructor | Description |
---|---|
ClobUtf8Writer(TemporaryClob control,
long pos) |
Constructor.
|
Modifier and Type | Method | 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.lang.AutoCloseable
close
in interface java.io.Closeable
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.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.