Interface SlimeFormat

  • All Known Implementing Classes:
    JsonFormat

    public interface SlimeFormat
    Author:
    Ulf Lilleengen
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void decode​(java.io.InputStream is, Slime slime)
      Encode a slime object into the provided output stream
      void encode​(java.io.OutputStream os, Slime slime)
      Encode a slime object into the provided output stream
    • Method Detail

      • encode

        void encode​(java.io.OutputStream os,
                    Slime slime)
             throws java.io.IOException
        Encode a slime object into the provided output stream
        Parameters:
        os - The outputstream to write to.
        slime - The slime object to encode.
        Throws:
        java.io.IOException
      • decode

        void decode​(java.io.InputStream is,
                    Slime slime)
             throws java.io.IOException
        Encode a slime object into the provided output stream
        Parameters:
        is - The input stream to read from.
        slime - The slime object to decode into.
        Throws:
        java.io.IOException