/** * Returns the value of the specified column as a reader. * * @param columnIndex (1,2,...) * @return the value * @throws SQLException if the column is not found or if the result set is * closed */ @Override public Reader getCharacterStream(int columnIndex) throws SQLException { try { debugCodeCall("getCharacterStream", columnIndex); return get(columnIndex).getReader(); } catch (Exception e) { throw logAndConvert(e); } }
/** * Returns the reader. * * @return the reader */ @Override public Reader getCharacterStream() throws SQLException { try { debugCodeCall("getCharacterStream"); checkClosed(); return value.getReader(); } catch (Exception e) { throw logAndConvert(e); } }
/** * Returns the value of the specified column as a reader. * * @param columnLabel the column label * @return the value * @throws SQLException if the column is not found or if the result set is * closed */ @Override public Reader getNCharacterStream(String columnLabel) throws SQLException { try { debugCodeCall("getNCharacterStream", columnLabel); return get(columnLabel).getReader(); } catch (Exception e) { throw logAndConvert(e); } }
/** * Returns the value of the specified column as a reader. * * @param columnLabel the column label * @return the value * @throws SQLException if the column is not found or if the result set is * closed */ @Override public Reader getCharacterStream(String columnLabel) throws SQLException { try { debugCodeCall("getCharacterStream", columnLabel); return get(columnLabel).getReader(); } catch (Exception e) { throw logAndConvert(e); } }
/** * Returns the value of the specified column as a reader. * * @param columnIndex (1,2,...) * @return the value * @throws SQLException if the column is not found or if the result set is * closed */ @Override public Reader getNCharacterStream(int columnIndex) throws SQLException { try { debugCodeCall("getNCharacterStream", columnIndex); return get(columnIndex).getReader(); } catch (Exception e) { throw logAndConvert(e); } }
Reader reader = value.getReader(); try { IOUtils.skipFully(reader, pos - 1);
Reader reader = v.getReader(); try { for (int i = 0;; i++) {
/** * Returns the length. * * @return the length */ @Override public long length() throws SQLException { try { debugCodeCall("length"); checkClosed(); if (value.getType() == Value.CLOB) { long precision = value.getPrecision(); if (precision > 0) { return precision; } } return IOUtils.copyAndCloseInput(value.getReader(), null, Long.MAX_VALUE); } catch (Exception e) { throw logAndConvert(e); } }
Reader reader = v.getReader(); DataBuffer.copyString(reader, out);