本文整理了Java中java.sql.ResultSet.getUnicodeStream
方法的一些代码示例,展示了ResultSet.getUnicodeStream
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResultSet.getUnicodeStream
方法的具体详情如下:
包路径:java.sql.ResultSet
类名称:ResultSet
方法名:getUnicodeStream
[英]Gets the value of the column as an InputStream of unicode characters.
[中]以unicode字符的InputStream形式获取列的值。
代码示例来源:origin: querydsl/querydsl
@Override
@SuppressWarnings("deprecation")
public InputStream getUnicodeStream(String columnLabel) throws SQLException {
return rs.getUnicodeStream(columnLabel);
}
代码示例来源:origin: querydsl/querydsl
@Override
@SuppressWarnings("deprecation")
public InputStream getUnicodeStream(int columnIndex) throws SQLException {
return rs.getUnicodeStream(columnIndex);
}
代码示例来源:origin: alibaba/druid
@Override
@Deprecated
public java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException {
try {
return rs.getUnicodeStream(columnIndex);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: alibaba/druid
@Override
@Deprecated
public java.io.InputStream getUnicodeStream(String columnLabel) throws SQLException {
try {
return rs.getUnicodeStream(columnLabel);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: apache/incubator-shardingsphere
@SuppressWarnings("deprecation")
@Override
public InputStream getInputStream(final int columnIndex, final String type) throws SQLException {
switch (type) {
case "Ascii":
return resultSet.getAsciiStream(columnIndex);
case "Unicode":
return resultSet.getUnicodeStream(columnIndex);
case "Binary":
return resultSet.getBinaryStream(columnIndex);
default:
throw new SQLException(String.format("Unsupported type: %s", type));
}
}
代码示例来源:origin: apache/incubator-shardingsphere
@SuppressWarnings("deprecation")
@Override
public InputStream getInputStream(final String columnLabel, final String type) throws SQLException {
switch (type) {
case "Ascii":
return resultSet.getAsciiStream(columnLabel);
case "Unicode":
return resultSet.getUnicodeStream(columnLabel);
case "Binary":
return resultSet.getBinaryStream(columnLabel);
default:
throw new SQLException(String.format("Unsupported type: %s", type));
}
}
代码示例来源:origin: alibaba/druid
@SuppressWarnings("deprecation")
@Override
public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy rs, String columnLabel) throws SQLException {
if (this.pos < filterSize) {
return nextFilter()
.resultSet_getUnicodeStream(this, rs, columnLabel);
}
return rs.getResultSetRaw()
.getUnicodeStream(columnLabel);
}
代码示例来源:origin: alibaba/druid
@SuppressWarnings("deprecation")
@Override
public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy rs, int columnIndex)
throws SQLException {
if (this.pos < filterSize) {
return nextFilter()
.resultSet_getUnicodeStream(this, rs, columnIndex);
}
return rs.getResultSetRaw()
.getUnicodeStream(columnIndex);
}
代码示例来源:origin: codingapi/tx-lcn
@Override
public InputStream getUnicodeStream(String columnLabel) throws SQLException {
SQLException e = null;
try {
InputStream value = delegate.getUnicodeStream(columnLabel);
eventListener.onAfterResultSetGet(resultSetInformation, columnLabel, value, null);
return value;
} catch (SQLException sqle) {
e = sqle;
eventListener.onAfterResultSetGet(resultSetInformation, columnLabel, null, e);
throw e;
}
}
代码示例来源:origin: codingapi/tx-lcn
@Override
public InputStream getUnicodeStream(int columnIndex) throws SQLException {
SQLException e = null;
try {
InputStream value = delegate.getUnicodeStream(columnIndex);
eventListener.onAfterResultSetGet(resultSetInformation, columnIndex, value, null);
return value;
} catch (SQLException sqle) {
e = sqle;
eventListener.onAfterResultSetGet(resultSetInformation, columnIndex, null, e);
throw e;
}
}
代码示例来源:origin: Meituan-Dianping/Zebra
@Deprecated
@Override
public InputStream getUnicodeStream(String columnLabel) throws SQLException {
return innerResultSet.getUnicodeStream(columnLabel);
}
代码示例来源:origin: Meituan-Dianping/Zebra
@Deprecated
@Override
public InputStream getUnicodeStream(String columnLabel) throws SQLException {
return innerResultSet.getUnicodeStream(columnLabel);
}
代码示例来源:origin: Meituan-Dianping/Zebra
@Deprecated
@Override
public InputStream getUnicodeStream(int columnIndex) throws SQLException {
return innerResultSet.getUnicodeStream(columnIndex);
}
代码示例来源:origin: Meituan-Dianping/Zebra
@Deprecated
@Override
public InputStream getUnicodeStream(int columnIndex) throws SQLException {
return innerResultSet.getUnicodeStream(columnIndex);
}
代码示例来源:origin: com.alibaba/druid
@Override
@Deprecated
public java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException {
try {
return rs.getUnicodeStream(columnIndex);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: com.alibaba/druid
@Override
@Deprecated
public java.io.InputStream getUnicodeStream(String columnLabel) throws SQLException {
try {
return rs.getUnicodeStream(columnLabel);
} catch (Throwable t) {
throw checkException(t);
}
}
代码示例来源:origin: p6spy/p6spy
@Override
public InputStream getUnicodeStream(String columnLabel) throws SQLException {
SQLException e = null;
try {
InputStream value = delegate.getUnicodeStream(columnLabel);
eventListener.onAfterResultSetGet(resultSetInformation, columnLabel, value, null);
return value;
} catch (SQLException sqle) {
e = sqle;
eventListener.onAfterResultSetGet(resultSetInformation, columnLabel, null, e);
throw e;
}
}
代码示例来源:origin: p6spy/p6spy
@Override
public InputStream getUnicodeStream(int columnIndex) throws SQLException {
SQLException e = null;
try {
InputStream value = delegate.getUnicodeStream(columnIndex);
eventListener.onAfterResultSetGet(resultSetInformation, columnIndex, value, null);
return value;
} catch (SQLException sqle) {
e = sqle;
eventListener.onAfterResultSetGet(resultSetInformation, columnIndex, null, e);
throw e;
}
}
代码示例来源:origin: com.alibaba/druid
@SuppressWarnings("deprecation")
@Override
public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy rs, int columnIndex)
throws SQLException {
if (this.pos < filterSize) {
return nextFilter()
.resultSet_getUnicodeStream(this, rs, columnIndex);
}
return rs.getResultSetRaw()
.getUnicodeStream(columnIndex);
}
代码示例来源:origin: com.alibaba/druid
@SuppressWarnings("deprecation")
@Override
public java.io.InputStream resultSet_getUnicodeStream(ResultSetProxy rs, String columnLabel) throws SQLException {
if (this.pos < filterSize) {
return nextFilter()
.resultSet_getUnicodeStream(this, rs, columnLabel);
}
return rs.getResultSetRaw()
.getUnicodeStream(columnLabel);
}
内容来源于网络,如有侵权,请联系作者删除!