OK, so I want to convert an entity having the MediaType of
TEXT_URI_LIST into an Object, say a List<String> where each URL is an
element of the list. I derive from ConverterService and override
toObject(). Inside that method, I want to read the representation
line-by-line, so I call Representation.toStream() then use an
InputStreamReader and a BufferedReader.
But what do I do about IOExceptions? The toObject() method is
declared to throw no exceptions. Or if I catch the exceptions
myself, I have no way to call setStatus() on the response to indicate
that the conversion failed any why.
The ConverterService API doesn't seem that useable.
- Paul