Interface StringAccessor

All Known Subinterfaces:
ClobRef
All Known Implementing Classes:
StringObject

public interface StringAccessor
An interface used by the engine to access and process strings. This interface allows us to access the contents of a string that may be implemented in several different ways. For example, a string may be represented as a java.lang.String object in memeory, or it may be represented as an ASCII sequence in a store.
Author:
Tobias Downer
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a Reader that allows the string to be read sequentually from start to finish.
    int
    Returns the number of characters in the string.
    Returns this string as a java.lang.String object.
  • Method Details

    • length

      int length()
      Returns the number of characters in the string.
    • getReader

      Reader getReader()
      Returns a Reader that allows the string to be read sequentually from start to finish.
    • toString

      String toString()
      Returns this string as a java.lang.String object. Some care may be necessary with this call because a very large string will require a lot space on the heap.
      Overrides:
      toString in class Object