类 CharacterStreamImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.internal.CharacterStreamImpl
-
- 所有已实现的接口:
CharacterStream
public class CharacterStreamImpl extends Object implements CharacterStream
Implementation ofCharacterStream- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 CharacterStreamImpl(Reader reader, long length)Constructs a CharacterStreamImplCharacterStreamImpl(String chars)Constructs a CharacterStreamImpl
-
-
-
构造器详细资料
-
CharacterStreamImpl
public CharacterStreamImpl(String chars)
Constructs a CharacterStreamImpl- 参数:
chars- The String of characters to use backing the CharacterStream
-
CharacterStreamImpl
public CharacterStreamImpl(Reader reader, long length)
Constructs a CharacterStreamImpl- 参数:
reader- The Reader containing the characters to use backing the CharacterStreamlength- The length of the stream
-
-
方法详细资料
-
asReader
public Reader asReader()
从接口复制的说明:CharacterStreamProvides access to the underlying data as a Reader.- 指定者:
asReader在接口中CharacterStream- 返回:
- The reader.
-
asString
public String asString()
从接口复制的说明:CharacterStreamProvides access to the underlying data as a String.- 指定者:
asString在接口中CharacterStream- 返回:
- The underlying String data
-
getLength
public long getLength()
从接口复制的说明:CharacterStreamRetrieve the number of characters.- 指定者:
getLength在接口中CharacterStream- 返回:
- The number of characters.
-
release
public void release()
从接口复制的说明:CharacterStreamRelease any underlying resources.- 指定者:
release在接口中CharacterStream
-
-