src/main/java/com/amazon/redshift/jdbc/RedshiftResultSet.java [2889:2909]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public InputStream getAsciiStream(int columnIndex) throws SQLException {
    if (RedshiftLogger.isEnable()) 
    	connection.getLogger().log(LogLevel.DEBUG, "  getAsciiStream columnIndex: {0}", columnIndex);
    checkResultSet(columnIndex);
    if (wasNullFlag) {
      return null;
    }

    // Version 7.2 supports AsciiStream for all the RS text types
    // As the spec/javadoc for this method indicate this is to be used for
    // large text values (i.e. LONGVARCHAR) RS doesn't have a separate
    // long string datatype, but with toast the text datatype is capable of
    // handling very large values. Thus the implementation ends up calling
    // getString() since there is no current way to stream the value from the server
    try {
      return new ByteArrayInputStream(getString(columnIndex).getBytes("ASCII"));
    } catch (UnsupportedEncodingException l_uee) {
      throw new RedshiftException(GT.tr("The JVM claims not to support the encoding: {0}", "ASCII"),
          RedshiftState.UNEXPECTED_ERROR, l_uee);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/com/amazon/redshift/jdbc/RedshiftResultSet.java [2911:2931]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public InputStream getUnicodeStream(int columnIndex) throws SQLException {
    if (RedshiftLogger.isEnable()) 
    	connection.getLogger().log(LogLevel.DEBUG, "  getUnicodeStream columnIndex: {0}", columnIndex);
    checkResultSet(columnIndex);
    if (wasNullFlag) {
      return null;
    }

    // Version 7.2 supports AsciiStream for all the RS text types
    // As the spec/javadoc for this method indicate this is to be used for
    // large text values (i.e. LONGVARCHAR) RS doesn't have a separate
    // long string datatype, but with toast the text datatype is capable of
    // handling very large values. Thus the implementation ends up calling
    // getString() since there is no current way to stream the value from the server
    try {
      return new ByteArrayInputStream(getString(columnIndex).getBytes("UTF-8"));
    } catch (UnsupportedEncodingException l_uee) {
      throw new RedshiftException(GT.tr("The JVM claims not to support the encoding: {0}", "UTF-8"),
          RedshiftState.UNEXPECTED_ERROR, l_uee);
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



