public interface ImportContext extends IOContext
ImportContext
...Modifier and Type | Method and Description |
---|---|
String |
getContentLanguage()
Returns the content language or
null |
long |
getContentLength()
Returns the length of the data or
-1 if
the content length could not be determined. |
String |
getEncoding()
Returns the encoding extracted from a content type as present in a
request header or
null |
Item |
getImportRoot()
Returns the import root of the resource to import, i.e.
|
InputStream |
getInputStream()
Returns the input stream of the data to import or
null if
there are none. |
String |
getMimeType()
Returns the main media type.
|
long |
getModificationTime()
Returns the modification time of the resource or the current time if
the modification time has not been set.
|
Object |
getProperty(Object propertyName) |
String |
getSystemId()
Returns the system id of the resource to be imported.
|
getIOListener, hasStream, informCompleted, isCompleted
Item getImportRoot()
String getSystemId()
InputStream getInputStream()
null
if
there are none.IOContext.hasStream()
long getModificationTime()
String getContentLanguage()
null
long getContentLength()
-1
if
the content length could not be determined.String getMimeType()
null
should be returned.String getEncoding()
null
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.