org.h2.value.Value.getReader()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(88)

本文整理了Java中org.h2.value.Value.getReader()方法的一些代码示例,展示了Value.getReader()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.getReader()方法的具体详情如下:
包路径:org.h2.value.Value
类名称:Value
方法名:getReader

Value.getReader介绍

[英]Get the reader
[中]吸引读者

代码示例

代码示例来源:origin: com.h2database/h2

/**
 * 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);
  }
}

代码示例来源:origin: com.h2database/h2

/**
 * 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);
  }
}

代码示例来源:origin: com.h2database/h2

/**
 * 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);
  }
}

代码示例来源:origin: com.h2database/h2

/**
 * 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);
  }
}

代码示例来源:origin: com.h2database/h2

/**
 * 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);
  }
}

代码示例来源:origin: com.h2database/h2

/**
 * Returns the reader, starting from an offset.
 *
 * @param pos 1-based offset
 * @param length length of requested area
 * @return the reader
 */
@Override
public Reader getCharacterStream(long pos, long length) throws SQLException {
  try {
    debugCodeCall("getCharacterStream(pos, length)");
    checkClosed();
    return value.getReader(pos, length);
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: com.h2database/h2

char[] chars = new char[lobBlockSize];
try (Reader reader = v.getReader()) {
  for (int i = 0;; i++) {
    StringBuilder buff = new StringBuilder(lobBlockSize * 2);

代码示例来源:origin: com.h2database/h2

try (Reader reader = value.getReader()) {
  IOUtils.skipFully(reader, pos - 1);
  IOUtils.copyAndCloseInput(reader, writer, length);

代码示例来源:origin: com.h2database/h2

/**
 * 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);
  }
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

/**
 * Returns the reader.
 *
 * @return the reader
 */
public Reader getCharacterStream() throws SQLException {
  try {
    debugCodeCall("getCharacterStream");
    checkClosed();
    return value.getReader();
  } catch (Throwable e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: org.wowtools/h2

/**
 * 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);
  }
}

代码示例来源:origin: com.eventsourcing/h2

/**
 * 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);
  }
}

代码示例来源:origin: org.wowtools/h2

/**
 * 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);
  }
}

代码示例来源:origin: org.wowtools/h2

/**
 * 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);
  }
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

/**
 * Returns the value of the specified column as input stream.
 * 
 * @param columnName the name of the column label
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
public Reader getCharacterStream(String columnName) throws SQLException {
  try {
    debugCodeCall("getCharacterStream", columnName);
    return get(columnName).getReader();
  } catch (Throwable e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

/**
 * Returns the value of the specified column as input stream.
 * 
 * @param columnIndex (1,2,...)
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
public Reader getNCharacterStream(int columnIndex) throws SQLException {
  try {
    debugCodeCall("getNCharacterStream", columnIndex);
    return get(columnIndex).getReader();
  } catch (Throwable e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

/**
 * Returns the value of the specified column as input stream.
 * 
 * @param columnIndex (1,2,...)
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
public Reader getCharacterStream(int columnIndex) throws SQLException {
  try {
    debugCodeCall("getCharacterStream", columnIndex);
    return get(columnIndex).getReader();
  } catch (Throwable e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

/**
 * Returns the value of the specified column as input stream.
 * 
 * @param columnName the name of the column label
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
public Reader getNCharacterStream(String columnName) throws SQLException {
  try {
    debugCodeCall("getNCharacterStream", columnName);
    return get(columnName).getReader();
  } catch (Throwable e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: org.wowtools/h2

/**
 * 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);
  }
}

代码示例来源:origin: org.wowtools/h2

/**
 * 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);
  }
}

相关文章

微信公众号

最新文章

更多