GeezerVison is showing docs.oracle.com — SQLInput (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
compact2, compact3
java.sql
Interface SQLInput
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
| Modifier and Type |
Method |
Description |
Array |
readArray() |
Reads an SQL ARRAY value from the stream and returns it as an
Array object in the Java programming language.
|
InputStream |
readAsciiStream() |
Reads the next attribute in the stream and returns it as a stream of ASCII characters.
|
BigDecimal |
readBigDecimal() |
Reads the next attribute in the stream and returns it as a java.math.BigDecimal
object in the Java programming language.
|
InputStream |
readBinaryStream() |
Reads the next attribute in the stream and returns it as a stream of uninterpreted
bytes.
|
Blob |
readBlob() |
Reads an SQL BLOB value from the stream and returns it as a
Blob object in the Java programming language.
|
boolean |
readBoolean() |
Reads the next attribute in the stream and returns it as a boolean
in the Java programming language.
|
byte |
readByte() |
Reads the next attribute in the stream and returns it as a byte
in the Java programming language.
|
byte[] |
readBytes() |
Reads the next attribute in the stream and returns it as an array of bytes
in the Java programming language.
|
Reader |
readCharacterStream() |
Reads the next attribute in the stream and returns it as a stream of Unicode characters.
|
Clob |
readClob() |
Reads an SQL CLOB value from the stream and returns it as a
Clob object in the Java programming language.
|
Date |
readDate() |
Reads the next attribute in the stream and returns it as a java.sql.Date object.
|
double |
readDouble() |
Reads the next attribute in the stream and returns it as a double
in the Java programming language.
|
float |
readFloat() |
Reads the next attribute in the stream and returns it as a float
in the Java programming language.
|
int |
readInt() |
Reads the next attribute in the stream and returns it as an int
in the Java programming language.
|
long |
readLong() |
Reads the next attribute in the stream and returns it as a long
in the Java programming language.
|
NClob |
readNClob() |
Reads an SQL NCLOB value from the stream and returns it as a
NClob object in the Java programming language.
|
String |
readNString() |
Reads the next attribute in the stream and returns it as a String
in the Java programming language.
|
Object |
readObject() |
Reads the datum at the head of the stream and returns it as an
Object in the Java programming language.
|
default <T> T |
readObject(Class<T> type) |
Reads the next attribute in the stream and returns it as an
Object in the Java programming language.
|
Ref |
readRef() |
Reads an SQL REF value from the stream and returns it as a
Ref object in the Java programming language.
|
RowId |
readRowId() |
Reads an SQL ROWID value from the stream and returns it as a
RowId object in the Java programming language.
|
short |
readShort() |
Reads the next attribute in the stream and returns it as a short
in the Java programming language.
|
SQLXML |
readSQLXML() |
Reads an SQL XML value from the stream and returns it as a
SQLXML object in the Java programming language.
|
String |
readString() |
Reads the next attribute in the stream and returns it as a String
in the Java programming language.
|
Time |
readTime() |
Reads the next attribute in the stream and returns it as a java.sql.Time object.
|
Timestamp |
readTimestamp() |
Reads the next attribute in the stream and returns it as a java.sql.Timestamp object.
|
URL |
readURL() |
Reads an SQL DATALINK value from the stream and returns it as a
java.net.URL object in the Java programming language.
|
boolean |
wasNull() |
Retrieves whether the last value read was SQL NULL.
|
-
-
Method Detail
-
readNString
String readNString()
throws SQLException
Reads the next attribute in the stream and returns it as a String
in the Java programming language. It is intended for use when
accessing NCHAR,NVARCHAR
and LONGNVARCHAR columns.
- Returns:
- the attribute; if the value is SQL
NULL, returns null
- Throws:
SQLException - if a database access error occurs
SQLFeatureNotSupportedException - if the JDBC driver does not support
this method
- Since:
- 1.6
Java™ Platform Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|