Example usage for java.io StringBufferInputStream available

List of usage examples for java.io StringBufferInputStream available

Introduction

In this page you can find the example usage for java.io StringBufferInputStream available.

Prototype

public synchronized int available() 

Source Link

Document

Returns the number of bytes that can be read from the input stream without blocking.

Usage

From source file:com.wabacus.config.database.type.DB2.java

public void setClobValue(int iindex, String value, PreparedStatement pstmt) throws SQLException {
    if (value == null)
        value = "";
    StringBufferInputStream sbis = new StringBufferInputStream(value);
    pstmt.setAsciiStream(iindex, sbis, sbis.available());
}