接口 CharacterStream

  • 所有已知实现类:
    CharacterStreamImpl

    public interface CharacterStream
    Wraps a character stream (reader) to also provide the length (number of characters) which is needed when binding.
    作者:
    Steve Ebersole
    • 方法详细资料

      • asReader

        Reader asReader()
        Provides access to the underlying data as a Reader.
        返回:
        The reader.
      • asString

        String asString()
        Provides access to the underlying data as a String.
        返回:
        The underlying String data
      • getLength

        long getLength()
        Retrieve the number of characters.
        返回:
        The number of characters.
      • release

        void release()
        Release any underlying resources.