T
- The Class object of ResourceRepresentation
which is parsed with this parserpublic interface Parser<T extends Resource>
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
parseToInputStream(T resource)
Use this method to return InputStream parsed from
ResourceRepresentation |
T |
parseToObject(java.io.InputStream content)
Use this method to return parsed
ResourceRepresentation from InputStream |
T parseToObject(java.io.InputStream content) throws ParsingException
ResourceRepresentation
from InputStreamcontent
- The InputStream representing ResourceRepresentation
ResourceRepresentation
ParsingException
java.io.InputStream parseToInputStream(T resource) throws ParsingException
ResourceRepresentation
resource
- The ResourceRepresentation
which will be parsed to InputStreamResourceRepresentation
ParsingException