Hitachi

Hitachi Advanced Database Application Development Guide


8.5.9 getAsciiStream(int columnIndex)

Organization of this subsection

(1) Function

This method acquires in a java.io.InputStream object the value in a specified column in the current row of the ResultSet object. The column whose value is to be acquired is specified in the argument.

The method does not convert the value to ASCII characters.

(2) Format

public synchronized InputStream getAsciiStream(int columnIndex) throws SQLException

(3) Arguments

int columnIndex

Specifies a column number.

(4) Return value

This method returns a java.io.InputStream object that contains the retrieval result. The following table shows the relationship between the retrieval result and the return value.

Table 8‒18: Relationship between the retrieval result and the return value (getAsciiStream method)

HADB data type

Retrieval result

Return value

CHAR

VARCHAR

BINARY

VARBINARY

Null value

null

Other than the above

java.io.InputStream object containing the retrieval result

Other

Not applicable

SQLException is thrown.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases: