Class PackageProgressTracker.TextWriterTracking
- java.lang.Object
-
- com.composum.sling.core.pckgmgr.jcrpckg.util.PackageProgressTracker
-
- com.composum.sling.core.pckgmgr.jcrpckg.util.PackageProgressTracker.TextWriterTracking
-
- All Implemented Interfaces:
org.apache.jackrabbit.vault.fs.api.ProgressTrackerListener
- Direct Known Subclasses:
PackageJobExecutor.PackageManagerCallable.OperationDoneTracker
- Enclosing class:
- PackageProgressTracker
public static class PackageProgressTracker.TextWriterTracking extends PackageProgressTracker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.composum.sling.core.pckgmgr.jcrpckg.util.PackageProgressTracker
PackageProgressTracker.HtmlStreamTracking, PackageProgressTracker.HtmlTracking, PackageProgressTracker.Item, PackageProgressTracker.JsonStreamTracking, PackageProgressTracker.JsonTracking, PackageProgressTracker.LogOnlyTracking, PackageProgressTracker.TextWriterTracking
-
-
Field Summary
Fields Modifier and Type Field Description protected Pattern
finalizedIndicator
protected PrintWriter
writer
-
Fields inherited from class com.composum.sling.core.pckgmgr.jcrpckg.util.PackageProgressTracker
actionCount, errorCount, itemCount, PLAIN_TEXT_SHORT_ACTION_SPACE
-
-
Constructor Summary
Constructors Constructor Description TextWriterTracking(PrintWriter writer, Pattern finalizedIndicator)
TextWriterTracking(org.apache.sling.api.SlingHttpServletResponse response, Pattern finalizedIndicator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeEpilogue()
protected void
writeItem(PackageProgressTracker.Item item)
void
writePrologue()
-
Methods inherited from class com.composum.sling.core.pckgmgr.jcrpckg.util.PackageProgressTracker
getErrorDetected, onError, onMessage
-
-
-
-
Field Detail
-
writer
protected final PrintWriter writer
-
finalizedIndicator
protected final Pattern finalizedIndicator
-
-
Constructor Detail
-
TextWriterTracking
public TextWriterTracking(org.apache.sling.api.SlingHttpServletResponse response, Pattern finalizedIndicator) throws IOException
- Throws:
IOException
-
TextWriterTracking
public TextWriterTracking(PrintWriter writer, Pattern finalizedIndicator)
-
-
Method Detail
-
writePrologue
public void writePrologue()
- Specified by:
writePrologue
in classPackageProgressTracker
-
writeEpilogue
public void writeEpilogue() throws IOException
- Specified by:
writeEpilogue
in classPackageProgressTracker
- Throws:
IOException
-
writeItem
protected void writeItem(PackageProgressTracker.Item item) throws IOException
- Specified by:
writeItem
in classPackageProgressTracker
- Throws:
IOException
-
-