public class DatabaseOutputStream extends OutputStream
| Constructor and Description |
|---|
DatabaseOutputStream() |
DatabaseOutputStream(Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the database connection.
|
void |
flush()
Commits the database connection.
|
void |
setConnection(Connection conn) |
void |
write(int b)
This method is not supported in DatabaseOutputStream because it
doesn't make sense to write a single int to a database stream.
|
void |
write(String stmt)
Executes the given statement in the database.
|
write, writepublic DatabaseOutputStream(Connection conn)
public DatabaseOutputStream()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic void flush()
flush in interface Flushableflush in class OutputStreampublic void write(int b)
write in class OutputStreamUnsupportedOperationExceptionpublic void write(String stmt) throws SQLException
stmt - SQL to be executedSQLException - Thrown if there is a problem preparing stmt as a
statement, or in executing it.public void setConnection(Connection conn)
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.