public class EmptyRepresentation extends Representation
getText()
method for example will return an empty
string. It can also have regular metadata available.UNKNOWN_SIZE
Constructor and Description |
---|
EmptyRepresentation()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.io.Reader |
getReader()
Returns a characters reader with the representation's content.
|
java.io.InputStream |
getStream()
Returns a stream with the representation's content.
|
java.lang.String |
getText()
Converts the representation to a string value.
|
append, exhaust, getAvailableSize, getDisposition, getExpirationDate, getRange, getSize, hasKnownSize, isAvailable, isEmpty, isTransient, release, setAvailable, setDisposition, setExpirationDate, setRange, setSize, setTransient
getModificationDate, getTag, setModificationDate, setTag
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
public java.io.Reader getReader() throws java.io.IOException
Representation
getReader
in class Representation
java.io.IOException
public java.io.InputStream getStream() throws java.io.IOException
Representation
getStream
in class Representation
java.io.IOException
public java.lang.String getText() throws java.io.IOException
Representation
getText
in class Representation
java.io.IOException
Copyright © 2005-2024 Restlet.