com.itextpdf.tool.itextdoc.site
Class FlatSitePipeline
java.lang.Object
com.itextpdf.tool.xml.pipeline.AbstractPipeline<MapContext>
com.itextpdf.tool.itextdoc.site.FlatSitePipeline
- All Implemented Interfaces:
- Pipeline<MapContext>
@Experimental
public class FlatSitePipeline
- extends AbstractPipeline<MapContext>
- Author:
- redlab_b http://www.redlab.be/
Method Summary |
boolean |
checkValidPart(Tag t)
|
Pipeline<?> |
close(WorkerContext ctx,
Tag t,
ProcessObject po)
|
Pipeline<?> |
init(WorkerContext context)
|
Pipeline<?> |
open(WorkerContext ctx,
Tag t,
ProcessObject po)
Create tree.js:
var tree = {
menu : [ {name: "info", url : "info.html", id : ""}, {name: "links", url: "links.html", id :""}],
title: "",
map : []
};
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatSitePipeline
public FlatSitePipeline(File srcdir,
File outdir,
Pipeline<?> next)
- Parameters:
srcdir
- the source directoryoutdir
- the output directorynext
- the next pipeline in line
open
public Pipeline<?> open(WorkerContext ctx,
Tag t,
ProcessObject po)
throws PipelineException
- Create tree.js:
var tree = {
menu : [ {name: "info", url : "info.html", id : ""}, {name: "links", url: "links.html", id :""}],
title: "",
map : []
};
- Specified by:
open
in interface Pipeline<MapContext>
- Overrides:
open
in class AbstractPipeline<MapContext>
- Throws:
PipelineException
checkValidPart
public boolean checkValidPart(Tag t)
- Parameters:
t
- the tag to check
- Returns:
- true if t is part and if there is a 'rel' attribute that it contains 'site'
close
public Pipeline<?> close(WorkerContext ctx,
Tag t,
ProcessObject po)
throws PipelineException
- Specified by:
close
in interface Pipeline<MapContext>
- Overrides:
close
in class AbstractPipeline<MapContext>
- Throws:
PipelineException
init
public Pipeline<?> init(WorkerContext context)
throws PipelineException
- Specified by:
init
in interface Pipeline<MapContext>
- Overrides:
init
in class AbstractPipeline<MapContext>
- Throws:
PipelineException
Copyright © 2011 1T3XT BVBA. All Rights Reserved.