|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.representation.Variant
org.restlet.representation.RepresentationInfo
org.restlet.representation.Representation
org.restlet.representation.CharacterRepresentation
org.restlet.representation.StringRepresentation
org.restlet.representation.AppendableRepresentation
public class AppendableRepresentation
Represents an appendable sequence of characters.
Field Summary |
---|
Fields inherited from class org.restlet.representation.Representation |
---|
UNKNOWN_SIZE |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.restlet.representation.StringRepresentation |
---|
getReader, getStream, release, setCharacterSet, setText, toString, updateSize, write |
Methods inherited from class org.restlet.representation.CharacterRepresentation |
---|
getChannel, write, write |
Methods inherited from class org.restlet.representation.Representation |
---|
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient |
Methods inherited from class org.restlet.representation.RepresentationInfo |
---|
getModificationDate, getTag, setModificationDate, setTag |
Methods inherited from class org.restlet.representation.Variant |
---|
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |