org.postgresql.pljava.jdbc

Class SQLOutputToChunk

Implemented Interfaces:
SQLOutput

public class SQLOutputToChunk
extends java.lang.Object
implements SQLOutput

The SQLOutputToChunk uses JNI to build a PostgreSQL StringInfo buffer in memory. A user should never make an attempt to create an instance of this class. Only internal JNI routines can do that. An instance is propagated in a call from the internal JNI layer to the Java layer will only survive during that single call. The handle of the instance will be invalidated when the call returns and subsequent use of the instance will yield a SQLException with the message "Stream is closed".

Constructor Summary

SQLOutputToChunk(long handle)

Method Summary

void
writeArray(Array value)
void
writeAsciiStream(InputStream value)
void
writeBigDecimal(BigDecimal value)
void
writeBinaryStream(InputStream value)
void
writeBlob(Blob value)
void
writeBoolean(boolean value)
void
writeByte(byte value)
void
writeBytes(byte[] buffer)
void
writeCharacterStream(Reader value)
void
writeClob(Clob value)
void
writeDate(Date value)
void
writeDouble(double value)
void
writeFloat(float value)
void
writeInt(int value)
void
writeLong(long value)
void
writeObject(SQLData value)
void
writeRef(Ref value)
void
writeShort(short value)
void
writeString(String value)
void
writeStruct(Struct value)
void
writeTime(Time value)
void
writeTimestamp(Timestamp value)
void
writeURL(URL value)

Constructor Details

SQLOutputToChunk

public SQLOutputToChunk(long handle)

Method Details

writeArray

public void writeArray(Array value)
            throws SQLException

writeAsciiStream

public void writeAsciiStream(InputStream value)
            throws SQLException

writeBigDecimal

public void writeBigDecimal(BigDecimal value)
            throws SQLException

writeBinaryStream

public void writeBinaryStream(InputStream value)
            throws SQLException

writeBlob

public void writeBlob(Blob value)
            throws SQLException

writeBoolean

public void writeBoolean(boolean value)
            throws SQLException

writeByte

public void writeByte(byte value)
            throws SQLException

writeBytes

public void writeBytes(byte[] buffer)
            throws SQLException

writeCharacterStream

public void writeCharacterStream(Reader value)
            throws SQLException

writeClob

public void writeClob(Clob value)
            throws SQLException

writeDate

public void writeDate(Date value)
            throws SQLException

writeDouble

public void writeDouble(double value)
            throws SQLException

writeFloat

public void writeFloat(float value)
            throws SQLException

writeInt

public void writeInt(int value)
            throws SQLException

writeLong

public void writeLong(long value)
            throws SQLException

writeObject

public void writeObject(SQLData value)
            throws SQLException

writeRef

public void writeRef(Ref value)
            throws SQLException

writeShort

public void writeShort(short value)
            throws SQLException

writeString

public void writeString(String value)
            throws SQLException

writeStruct

public void writeStruct(Struct value)
            throws SQLException

writeTime

public void writeTime(Time value)
            throws SQLException

writeTimestamp

public void writeTimestamp(Timestamp value)
            throws SQLException

writeURL

public void writeURL(URL value)
            throws SQLException

Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \ Distributed under the terms shown in COPYRIGHT