Package com.yahoo.slime
Interface SlimeFormat
-
- All Known Implementing Classes:
JsonFormat
public interface SlimeFormat
- Author:
- Ulf Lilleengen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
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 Detail
-
encode
void encode(OutputStream os, Slime slime) throws IOException
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(since="7", forRemoval=true) void decode(InputStream is, Slime slime) throws IOException
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
-
-