public class StringContentProvider extends BytesContentProvider
ContentProvider
for strings.
It is possible to specify, at the constructor, an encoding used to convert
the string into bytes, by default UTF-8.ContentProvider.Typed
Constructor and Description |
---|
StringContentProvider(String content) |
StringContentProvider(String content,
Charset charset) |
StringContentProvider(String content,
String encoding) |
StringContentProvider(String contentType,
String content,
Charset charset) |
getLength, iterator
getContentType
public StringContentProvider(String content)
Copyright © 1995-2015 Webtide. All Rights Reserved.