Package org.alfresco.util
Interface Content
-
- All Known Implementing Classes:
InputStreamContent
public interface ContentContent- Author:
- dcaruana
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContent()Gets content as a stringStringgetEncoding()Gets the content encodingInputStreamgetInputStream()Gets the content input streamStringgetMimetype()Gets the content mimetypeReadergetReader()Gets the content reader (which is sensitive to encoding)longgetSize()Gets the content length (in bytes)
-
-
-
Method Detail
-
getContent
String getContent() throws IOException
Gets content as a string- Returns:
- content as a string
- Throws:
IOException
-
getMimetype
String getMimetype()
Gets the content mimetype- Returns:
- mimetype
-
getEncoding
String getEncoding()
Gets the content encoding- Returns:
- encoding
-
getSize
long getSize()
Gets the content length (in bytes)- Returns:
- length
-
getInputStream
InputStream getInputStream()
Gets the content input stream- Returns:
- input stream
-
getReader
Reader getReader() throws IOException
Gets the content reader (which is sensitive to encoding)- Returns:
- Reader
- Throws:
IOException
-
-