当前位置: 首页>>代码示例>>Java>>正文


Java SerialClob.getCharacterStream方法代码示例

本文整理汇总了Java中javax.sql.rowset.serial.SerialClob.getCharacterStream方法的典型用法代码示例。如果您正苦于以下问题:Java SerialClob.getCharacterStream方法的具体用法?Java SerialClob.getCharacterStream怎么用?Java SerialClob.getCharacterStream使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.sql.rowset.serial.SerialClob的用法示例。


在下文中一共展示了SerialClob.getCharacterStream方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: test37

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test(enabled = false)
public void test37() throws Exception {
    SerialClob sc = new SerialClob(chars);
    String expected = "ello w";
    Reader r = sc.getCharacterStream(2, 6);
    for (char c : expected.toCharArray()) {
        char val = (char) r.read();
        assertTrue(c == val, val + " does not match " + c);
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:11,代码来源:SerialClobTests.java

示例2: test36

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test
public void test36() throws Exception {
    SerialClob sc = new SerialClob(chars);
    Reader r = sc.getCharacterStream();
    for (char c : chars) {
        char val = (char) r.read();
        assertTrue(c == val, val + " does not match " + c);
    }
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:10,代码来源:SerialClobTests.java

示例3: test01

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test(expectedExceptions = SerialException.class)
public void test01() throws Exception {
    SerialClob sc = new SerialClob(new StubClob());
    sc.free();
    sc.getCharacterStream();
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:7,代码来源:SerialClobTests.java

示例4: test02

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test(expectedExceptions = SerialException.class)
public void test02() throws Exception {
    SerialClob sc = new SerialClob(chars);
    sc.free();
    sc.getCharacterStream();
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:7,代码来源:SerialClobTests.java

示例5: test14

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test(expectedExceptions = SerialException.class)
public void test14() throws Exception {
    SerialClob sc = new SerialClob(chars);
    sc.getCharacterStream(-1, 5);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:6,代码来源:SerialClobTests.java

示例6: test15

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test(expectedExceptions = SerialException.class)
public void test15() throws Exception {
    SerialClob sc = new SerialClob(chars);
    sc.getCharacterStream(0, 5);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:6,代码来源:SerialClobTests.java

示例7: test16

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test(expectedExceptions = SerialException.class)
public void test16() throws Exception {
    SerialClob sc = new SerialClob(chars);
    sc.getCharacterStream(1, 100);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:6,代码来源:SerialClobTests.java

示例8: test17

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test(expectedExceptions = SerialException.class)
public void test17() throws Exception {
    SerialClob sc = new SerialClob(chars);
    sc.getCharacterStream(1, 0);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:6,代码来源:SerialClobTests.java

示例9: test18

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test(expectedExceptions = SerialException.class)
public void test18() throws Exception {
    SerialClob sc = new SerialClob(chars);
    sc.getCharacterStream(100, 5);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:6,代码来源:SerialClobTests.java

示例10: test21

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test
public void test21() throws Exception {
    SerialClob sc = new SerialClob(new StubClob());
    Reader is = sc.getCharacterStream();
    assertTrue(is != null);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:7,代码来源:SerialClobTests.java

示例11: test22

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test
public void test22() throws Exception {
    SerialClob sc = new SerialClob(chars);
    Reader is = sc.getCharacterStream();
    assertTrue(is != null);
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:7,代码来源:SerialClobTests.java

示例12: test03

import javax.sql.rowset.serial.SerialClob; //导入方法依赖的package包/类
@Test(expectedExceptions = SerialException.class)
public void test03() throws Exception {
    SerialClob sc = new SerialClob(new StubClob());
    sc.free();
    sc.getCharacterStream(1, 5);
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:7,代码来源:SerialClobTests.java


注:本文中的javax.sql.rowset.serial.SerialClob.getCharacterStream方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。