org.alicebot.server.core.targeting
Class TargetWriter

java.lang.Object
  extended by org.alicebot.server.core.targeting.Targeting
      extended by org.alicebot.server.core.targeting.TargetWriter

public class TargetWriter
extends Targeting

Handles writing of targets to files.

Author:
Noel Bush

Field Summary
 
Fields inherited from class org.alicebot.server.core.targeting.Targeting
CATEGORY_END, CATEGORY_START, EMPTY_STRING, INDENT, INPUT_END, INPUT_START, LINE_SEPARATOR, MATCH_END, MATCH_START, PATTERN_END, PATTERN_START, REPLY_END, REPLY_START, SPACE, TARGET_END, TARGET_START, TARGETS, TARGETS_END, TARGETS_START, TEMPLATE_END, TEMPLATE_START, TEXT_END, TEXT_START, THAT_END, THAT_START, TOPIC_END, TOPIC_NAME_BEGIN, TOPIC_NAME_END, TOPIC_START
 
Constructor Summary
TargetWriter()
           
 
Method Summary
static void rewriteTargets(java.util.HashMap targets, java.io.File file)
          Writes out a set of targets to a given file, deleting the file first.
static void write(Target target, XMLResourceSpec spec)
          Writes a target to a file defined by a given typespec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetWriter

public TargetWriter()
Method Detail

rewriteTargets

public static void rewriteTargets(java.util.HashMap targets,
                                  java.io.File file)
Writes out a set of targets to a given file, deleting the file first.

Parameters:
file - the File to which to write

write

public static void write(Target target,
                         XMLResourceSpec spec)
Writes a target to a file defined by a given typespec.

Parameters:
target - the target to write
spec - the XML resource spec for the target file