Interface Literal


  • public interface Literal
    An interface for objects that provide data dynamically for use in a literal protocol element.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int size()
      Return the size of the data.
      void writeTo​(java.io.OutputStream os)
      Write the data to the OutputStream.
    • Method Detail

      • size

        int size()
        Return the size of the data.
        Returns:
        the size of the data
      • writeTo

        void writeTo​(java.io.OutputStream os)
              throws java.io.IOException
        Write the data to the OutputStream.
        Parameters:
        os - the output stream
        Throws:
        java.io.IOException - for I/O errors