Package org.apache.jackrabbit.webdav.io
Interface InputContext
-
- All Known Implementing Classes:
InputContextImpl
public interface InputContext
InputContext
...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getContentLanguage()
Returns the content language ornull
long
getContentLength()
Returns the length of the data or -1 if the contentlength could not be determined.java.lang.String
getContentType()
Return the content type ornull
java.io.InputStream
getInputStream()
Returns the input stream of the resource to import.long
getModificationTime()
Returns the modification time of the resource or the current time if the modification time has not been set.java.lang.String
getProperty(java.lang.String propertyName)
Returns the value of the given property ornull
if this property does not exist.boolean
hasStream()
Return true, if there are any data to be imported (and not only properties)
-
-
-
Method Detail
-
hasStream
boolean hasStream()
Return true, if there are any data to be imported (and not only properties)- Returns:
-
getInputStream
java.io.InputStream getInputStream()
Returns the input stream of the resource to import.- Returns:
- the input stream.
-
getModificationTime
long getModificationTime()
Returns the modification time of the resource or the current time if the modification time has not been set.- Returns:
- the modification time.
-
getContentLanguage
java.lang.String getContentLanguage()
Returns the content language ornull
- Returns:
- contentLanguage
-
getContentLength
long getContentLength()
Returns the length of the data or -1 if the contentlength could not be determined.- Returns:
- the content length
-
getContentType
java.lang.String getContentType()
Return the content type ornull
- Returns:
-
getProperty
java.lang.String getProperty(java.lang.String propertyName)
Returns the value of the given property ornull
if this property does not exist.- Parameters:
propertyName
-- Returns:
- String property value or
null
-
-