1 package com.atlassian.marketplace.client.impl;
2
3 import java.io.InputStream;
4 import java.io.OutputStream;
5
6 import com.atlassian.marketplace.client.MpacException;
7
8
9
10
11
12 public interface EntityEncoding
13 {
14 <T> T decode(InputStream stream, Class<T> type) throws MpacException;
15
16 <T> void encode(OutputStream stream, T entity, boolean includeReadOnlyFields) throws MpacException;
17
18 <T> void encodeChanges(OutputStream stream, T original, T updated) throws MpacException;
19 }