org.hibernate.type.descriptor.java
Class CharacterStreamImpl
java.lang.Object
org.hibernate.type.descriptor.java.CharacterStreamImpl
- All Implemented Interfaces:
- CharacterStream
public class CharacterStreamImpl
- extends Object
- implements CharacterStream
Implementation of CharacterStream
- Author:
- Steve Ebersole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharacterStreamImpl
public CharacterStreamImpl(String chars)
getReader
public Reader getReader()
- Description copied from interface:
CharacterStream
- Retrieve the reader.
- Specified by:
getReader
in interface CharacterStream
- Returns:
- The reader.
getLength
public int getLength()
- Description copied from interface:
CharacterStream
- Retrieve the number of characters. JDBC 3 and earlier defined the length in terms of int type rather than
long type :(
- Specified by:
getLength
in interface CharacterStream
- Returns:
- The number of characters.
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.