public class AppendableRepresentation extends StringRepresentation implements Appendable
UNKNOWN_SIZE
Constructor and Description |
---|
AppendableRepresentation()
Constructor.
|
AppendableRepresentation(CharSequence text)
Constructor.
|
AppendableRepresentation(CharSequence text,
Language language)
Constructor.
|
AppendableRepresentation(CharSequence text,
MediaType mediaType)
Constructor.
|
AppendableRepresentation(CharSequence text,
MediaType mediaType,
Language language)
Constructor.
|
AppendableRepresentation(CharSequence text,
MediaType mediaType,
Language language,
CharacterSet characterSet)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Appendable |
append(char c) |
Appendable |
append(CharSequence csq) |
Appendable |
append(CharSequence csq,
int start,
int end) |
String |
getText()
Converts the representation to a string value.
|
void |
setText(CharSequence text)
Sets the string value.
|
getReader, getStream, release, setCharacterSet, setText, toString, updateSize, write
getChannel, write, write
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient
getModificationDate, getTag, setModificationDate, setTag
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType
public AppendableRepresentation()
public AppendableRepresentation(CharSequence text)
text
- The string value.public AppendableRepresentation(CharSequence text, Language language)
text
- The string value.language
- The language.public AppendableRepresentation(CharSequence text, MediaType mediaType)
text
- The string value.mediaType
- The media type.public AppendableRepresentation(CharSequence text, MediaType mediaType, Language language)
text
- The string value.mediaType
- The media type.language
- The language.public AppendableRepresentation(CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet)
text
- The string value.mediaType
- The media type.language
- The language.characterSet
- The character set.public Appendable append(char c) throws IOException
append
in interface Appendable
IOException
public Appendable append(CharSequence csq) throws IOException
append
in interface Appendable
IOException
public Appendable append(CharSequence csq, int start, int end) throws IOException
append
in interface Appendable
IOException
public String getText()
Representation
getText
in class StringRepresentation
public void setText(CharSequence text)
StringRepresentation
setText
in class StringRepresentation
text
- The string value.Copyright © 2005–2014. All rights reserved.