public class MariaDbClob extends MariaDbBlob implements Clob, NClob, Serializable
actualSize, blobContent
Constructor and Description |
---|
MariaDbClob() |
MariaDbClob(byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getAsciiStream() |
Reader |
getCharacterStream() |
Reader |
getCharacterStream(long pos,
long length) |
String |
getSubString(long pos,
int length)
Get sub string.
|
long |
length()
Return character length of the Clob.
|
long |
position(Clob searchstr,
long start) |
long |
position(String searchstr,
long start) |
OutputStream |
setAsciiStream(long pos) |
Writer |
setCharacterStream(long pos)
Set character stream.
|
int |
setString(long pos,
String str)
Set String.
|
int |
setString(long pos,
String str,
int offset,
int len) |
String |
toString()
ToString implementation.
|
free, getBinaryStream, getBinaryStream, getBytes, position, position, setBinaryStream, setBytes, setBytes, truncate
public String toString()
public String getSubString(long pos, int length) throws SQLException
getSubString
in interface Clob
pos
- positionlength
- length of sub stringSQLException
- if position is not possiblepublic Reader getCharacterStream() throws SQLException
getCharacterStream
in interface Clob
SQLException
public Reader getCharacterStream(long pos, long length) throws SQLException
getCharacterStream
in interface Clob
SQLException
public Writer setCharacterStream(long pos) throws SQLException
setCharacterStream
in interface Clob
pos
- positionSQLException
- if position is invalidpublic InputStream getAsciiStream() throws SQLException
getAsciiStream
in interface Clob
SQLException
public long position(String searchstr, long start) throws SQLException
position
in interface Clob
SQLException
public long position(Clob searchstr, long start) throws SQLException
position
in interface Clob
SQLException
public int setString(long pos, String str) throws SQLException
setString
in interface Clob
pos
- positionstr
- stringSQLException
- if UTF-8 convertion failedpublic int setString(long pos, String str, int offset, int len) throws SQLException
setString
in interface Clob
SQLException
public OutputStream setAsciiStream(long pos) throws SQLException
setAsciiStream
in interface Clob
SQLException
Copyright © 2016. All rights reserved.