Package org.alfresco.util
Interface Content
- All Known Implementing Classes:
InputStreamContent
public interface Content
Content
- Author:
- dcaruana
-
Method Summary
Modifier and TypeMethodDescriptionGets content as a stringGets the content encodingGets the content input streamGets the content mimetypeGets the content reader (which is sensitive to encoding)long
getSize()
Gets the content length (in bytes)
-
Method Details
-
getContent
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
Gets the content reader (which is sensitive to encoding)- Returns:
- Reader
- Throws:
IOException
-