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 |
---|---|
Reader |
getReader()
Returns a characters reader with the representation's content.
|
InputStream |
getStream()
Returns a stream with the representation's content.
|
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, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
public Reader getReader() throws IOException
Representation
getReader
in class Representation
IOException
public InputStream getStream() throws IOException
Representation
getStream
in class Representation
IOException
public String getText() throws IOException
Representation
getText
in class Representation
IOException
Copyright © 2005-2014 Restlet.