org.apache.jackrabbit.webdav.io
Interface InputContext

All Known Implementing Classes:
InputContextImpl

public interface InputContext

InputContext...


Method Summary
 String getContentLanguage()
          Returns the content language or null
 long getContentLength()
          Returns the length of the data or -1 if the contentlength could not be determined.
 String getContentType()
          Return the content type or null
 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.
 String getProperty(String propertyName)
          Returns the value of the given property or null 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

public boolean hasStream()
Return true, if there are any data to be imported (and not only properties)

Returns:

getInputStream

public InputStream getInputStream()
Returns the input stream of the resource to import.

Returns:
the input stream.

getModificationTime

public 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

public String getContentLanguage()
Returns the content language or null

Returns:
contentLanguage

getContentLength

public long getContentLength()
Returns the length of the data or -1 if the contentlength could not be determined.

Returns:
the content length

getContentType

public String getContentType()
Return the content type or null

Returns:

getProperty

public String getProperty(String propertyName)
Returns the value of the given property or null if this property does not exist.

Parameters:
propertyName -
Returns:
String property value or null


Copyright © 2005-2006 . All Rights Reserved.