Package org.apache.jackrabbit.webdav.io
Interface InputContext
- All Known Implementing Classes:
InputContextImpl
public interface InputContext
InputContext...-
Method Summary
Modifier and TypeMethodDescriptionReturns the content language ornulllongReturns the length of the data or -1 if the contentlength could not be determined.Return the content type ornullReturns the input stream of the resource to import.longReturns the modification time of the resource or the current time if the modification time has not been set.getProperty(String propertyName) Returns the value of the given property ornullif this property does not exist.booleanReturn true, if there are any data to be imported (and not only properties)
-
Method Details
-
hasStream
boolean hasStream()Return true, if there are any data to be imported (and not only properties)- Returns:
-
getInputStream
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
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
String getContentType()Return the content type ornull- Returns:
-
getProperty
Returns the value of the given property ornullif this property does not exist.- Parameters:
propertyName-- Returns:
- String property value or
null
-