public abstract class AbstractExportContext extends Object implements ExportContext
AbstractExportContext covers methods common to most ExportContext
implementations.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
completed |
| Constructor and Description |
|---|
AbstractExportContext(Item exportRoot,
boolean hasStream,
IOListener ioListener) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCompleted() |
Item |
getExportRoot()
Returns the item to be exported
|
IOListener |
getIOListener()
Returns the IOListener.
|
boolean |
hasStream()
Return true if the given export context can provide an output stream
|
void |
informCompleted(boolean success)
Informs this context that it will not be used for further exports any
more.
|
boolean |
isCompleted()
Returns true if this context already has been completed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputStream, setContentLanguage, setContentLength, setContentType, setCreationTime, setETag, setModificationTime, setPropertypublic AbstractExportContext(Item exportRoot, boolean hasStream, IOListener ioListener)
public IOListener getIOListener()
IOContextgetIOListener in interface IOContextpublic Item getExportRoot()
ExportContextgetExportRoot in interface ExportContextpublic boolean hasStream()
IOContextpublic void informCompleted(boolean success)
IOContextinformCompleted in interface IOContextpublic boolean isCompleted()
IOContextisCompleted in interface IOContextprotected void checkCompleted()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.