@Produces(value="text/plain") public class PropertiesWriter extends Object implements MessageBodyWriter<Set<String>>
| Constructor and Description |
|---|
PropertiesWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize(Set<String> s,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
writeTo(Set<String> s,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
isWriteable in interface MessageBodyWriter<Set<String>>public long getSize(Set<String> s, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
getSize in interface MessageBodyWriter<Set<String>>public void writeTo(Set<String> s, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException
writeTo in interface MessageBodyWriter<Set<String>>IOExceptionWebApplicationExceptionCopyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.