Class CharacterStreamImpl
java.lang.Object
org.hibernate.engine.jdbc.internal.CharacterStreamImpl
- All Implemented Interfaces:
CharacterStream
Implementation of
CharacterStream-
Constructor Summary
ConstructorsConstructorDescriptionCharacterStreamImpl(Reader reader, long length) Constructs a CharacterStreamImplCharacterStreamImpl(String chars) Constructs a CharacterStreamImpl -
Method Summary
-
Constructor Details
-
CharacterStreamImpl
Constructs a CharacterStreamImpl- Parameters:
chars- The String of characters to use backing the CharacterStream
-
CharacterStreamImpl
Constructs a CharacterStreamImpl- Parameters:
reader- The Reader containing the characters to use backing the CharacterStreamlength- The length of the stream
-
-
Method Details
-
asReader
Description copied from interface:CharacterStreamProvides access to the underlying data as a Reader.- Specified by:
asReaderin interfaceCharacterStream- Returns:
- The reader.
-
asString
Description copied from interface:CharacterStreamProvides access to the underlying data as a String.- Specified by:
asStringin interfaceCharacterStream- Returns:
- The underlying String data
-
getLength
public long getLength()Description copied from interface:CharacterStreamRetrieve the number of characters.- Specified by:
getLengthin interfaceCharacterStream- Returns:
- The number of characters.
-
release
public void release()Description copied from interface:CharacterStreamRelease any underlying resources.- Specified by:
releasein interfaceCharacterStream
-