Interface CharacterStream


  • public interface CharacterStream
    Wraps a character stream (reader) to also provide the length (number of characters) which is needed when binding.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.Reader asReader()
      Provides access to the underlying data as a Reader.
      java.lang.String asString()
      Provides access to the underlying data as a String.
      long getLength()
      Retrieve the number of characters.
      void release()
      Release any underlying resources.
    • Method Detail

      • asReader

        java.io.Reader asReader()
        Provides access to the underlying data as a Reader.
        Returns:
        The reader.
      • asString

        java.lang.String asString()
        Provides access to the underlying data as a String.
        Returns:
        The underlying String data
      • getLength

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

        void release()
        Release any underlying resources.