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, writegetChannel, write, writeappend, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransientgetModificationDate, getTag, setModificationDate, setTagcreateClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaTypepublic 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 AppendableIOExceptionpublic Appendable append(CharSequence csq) throws IOException
append in interface AppendableIOExceptionpublic Appendable append(CharSequence csq, int start, int end) throws IOException
append in interface AppendableIOExceptionpublic String getText()
RepresentationgetText in class StringRepresentationpublic void setText(CharSequence text)
StringRepresentationsetText in class StringRepresentationtext - The string value.Copyright © 2005–2025. All rights reserved.