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:CharacterStream
Provides access to the underlying data as a Reader.- Specified by:
asReader
in interfaceCharacterStream
- Returns:
- The reader.
-
asString
Description copied from interface:CharacterStream
Provides access to the underlying data as a String.- Specified by:
asString
in interfaceCharacterStream
- Returns:
- The underlying String data
-
getLength
public long getLength()Description copied from interface:CharacterStream
Retrieve the number of characters.- Specified by:
getLength
in interfaceCharacterStream
- Returns:
- The number of characters.
-
release
public void release()Description copied from interface:CharacterStream
Release any underlying resources.- Specified by:
release
in interfaceCharacterStream
-