org.hibernate.engine.jdbc.internal
Class CharacterStreamImpl

java.lang.Object
  extended by org.hibernate.engine.jdbc.internal.CharacterStreamImpl
All Implemented Interfaces:
CharacterStream

public class CharacterStreamImpl
extends Object
implements CharacterStream

Implementation of CharacterStream


Constructor Summary
CharacterStreamImpl(Reader reader, long length)
           
CharacterStreamImpl(String chars)
           
 
Method Summary
 Reader asReader()
          Provides access to the underlying data as a Reader.
 String asString()
          Provides access to the underlying data as a String.
 long getLength()
          Retrieve the number of characters.
 void release()
          Release any underlying resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterStreamImpl

public CharacterStreamImpl(String chars)

CharacterStreamImpl

public CharacterStreamImpl(Reader reader,
                           long length)
Method Detail

asReader

public Reader asReader()
Description copied from interface: CharacterStream
Provides access to the underlying data as a Reader.

Specified by:
asReader in interface CharacterStream
Returns:
The reader.

asString

public String asString()
Description copied from interface: CharacterStream
Provides access to the underlying data as a String.

Specified by:
asString in interface CharacterStream
Returns:
The underlying String data

getLength

public long getLength()
Description copied from interface: CharacterStream
Retrieve the number of characters.

Specified by:
getLength in interface CharacterStream
Returns:
The number of characters.

release

public void release()
Description copied from interface: CharacterStream
Release any underlying resources.

Specified by:
release in interface CharacterStream


Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.