Package com.yahoo.slime
Interface SlimeFormat
- All Known Implementing Classes:
JsonFormat
public interface SlimeFormat
- Author:
- Ulf Lilleengen
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(InputStream is, Slime slime) Deprecated, for removal: This API element is subject to removal in a future version.use e.g.void
encode
(OutputStream os, Slime slime) Encode a slime object into the provided output stream
-
Method Details
-
encode
Encode a slime object into the provided output stream- Parameters:
os
- The outputstream to write to.slime
- The slime object to encode.- Throws:
IOException
-
decode
Deprecated, for removal: This API element is subject to removal in a future version.use e.g.JsonDecoder
insteadDecode an input stream into the provided slime object- Parameters:
is
- The input stream to read from.slime
- The slime object to decode into.- Throws:
IOException
-