本文整理汇总了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);
}
}
示例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);
}
}
示例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();
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}