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