public class AppendableRepresentation extends StringRepresentation implements java.lang.Appendable
UNKNOWN_SIZE
Constructor and Description |
---|
AppendableRepresentation()
Constructor.
|
AppendableRepresentation(java.lang.CharSequence text)
Constructor.
|
AppendableRepresentation(java.lang.CharSequence text,
Language language)
Constructor.
|
AppendableRepresentation(java.lang.CharSequence text,
MediaType mediaType)
Constructor.
|
AppendableRepresentation(java.lang.CharSequence text,
MediaType mediaType,
Language language)
Constructor.
|
AppendableRepresentation(java.lang.CharSequence text,
MediaType mediaType,
Language language,
CharacterSet characterSet)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Appendable |
append(char c) |
java.lang.Appendable |
append(java.lang.CharSequence csq) |
java.lang.Appendable |
append(java.lang.CharSequence csq,
int start,
int end) |
java.lang.String |
getText()
Converts the representation to a string value.
|
void |
setText(java.lang.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, hashCode, includes, isCompatible, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType
public AppendableRepresentation()
public AppendableRepresentation(java.lang.CharSequence text)
text
- The string value.public AppendableRepresentation(java.lang.CharSequence text, Language language)
text
- The string value.language
- The language.public AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType)
text
- The string value.mediaType
- The media type.public AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language)
text
- The string value.mediaType
- The media type.language
- The language.public AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet)
text
- The string value.mediaType
- The media type.language
- The language.characterSet
- The character set.public java.lang.Appendable append(char c) throws java.io.IOException
append
in interface java.lang.Appendable
java.io.IOException
public java.lang.Appendable append(java.lang.CharSequence csq) throws java.io.IOException
append
in interface java.lang.Appendable
java.io.IOException
public java.lang.Appendable append(java.lang.CharSequence csq, int start, int end) throws java.io.IOException
append
in interface java.lang.Appendable
java.io.IOException
public java.lang.String getText()
Representation
getText
in class StringRepresentation
public void setText(java.lang.CharSequence text)
StringRepresentation
setText
in class StringRepresentation
text
- The string value.Copyright © 2005-2024 Restlet.