PageMixer demonstration

pagemixer.filter
Class Bootstrap

java.lang.Object
  |
  +--pagemixer.filter.Bootstrap
Direct Known Subclasses:
Bootstrap.Default

public abstract class Bootstrap
extends java.lang.Object

Template to execute from command line.


Inner Class Summary
static class Bootstrap.Default
          Bootstrap with HTML file parsing.
 
Constructor Summary
Bootstrap()
           
 
Method Summary
protected abstract  jp.ne.dti.lares.foozy.pagemixer.mixer.Producer createProducer()
          Create producer to produce token stream.
 void execute(jp.ne.dti.lares.foozy.pagemixer.mixer.Filter filter)
          Do mixing by given filter.
protected static jp.ne.dti.lares.foozy.pagemixer.mixer.Producer parseFile(java.lang.String filename)
          Utility to create token stream producer by HTML file parsing.
protected  void prepare(jp.ne.dti.lares.foozy.pagemixer.mixer.ConsumerContext context)
          Hook to prepare for mixing.
protected static jp.ne.dti.lares.foozy.pagemixer.mixer.Producer readinProducer(java.lang.String filename)
          Utility to create token stream producer by read Producer object in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bootstrap

public Bootstrap()
Method Detail

createProducer

protected abstract jp.ne.dti.lares.foozy.pagemixer.mixer.Producer createProducer()
                                                                          throws java.io.IOException,
                                                                                 java.lang.ClassNotFoundException,
                                                                                 jp.ne.dti.lares.foozy.pagemixer.parser.PageParseException
Create producer to produce token stream.

prepare

protected void prepare(jp.ne.dti.lares.foozy.pagemixer.mixer.ConsumerContext context)
Hook to prepare for mixing.

execute

public void execute(jp.ne.dti.lares.foozy.pagemixer.mixer.Filter filter)
             throws java.io.IOException,
                    java.lang.ClassNotFoundException,
                    jp.ne.dti.lares.foozy.pagemixer.parser.PageParseException
Do mixing by given filter.

parseFile

protected static jp.ne.dti.lares.foozy.pagemixer.mixer.Producer parseFile(java.lang.String filename)
                                                                   throws java.io.IOException,
                                                                          jp.ne.dti.lares.foozy.pagemixer.parser.PageParseException
Utility to create token stream producer by HTML file parsing.

readinProducer

protected static jp.ne.dti.lares.foozy.pagemixer.mixer.Producer readinProducer(java.lang.String filename)
                                                                        throws java.io.IOException,
                                                                               java.lang.ClassNotFoundException
Utility to create token stream producer by read Producer object in.

PageMixer demonstration