Package org.radeox.macro.book
Class TextFileUrlMapper
- java.lang.Object
-
- org.radeox.macro.book.TextFileUrlMapper
-
- All Implemented Interfaces:
UrlMapper
- Direct Known Subclasses:
AsinServices,BookServices
public abstract class TextFileUrlMapper extends Object implements UrlMapper
Manages links to keys, mapping is read from a text file- Version:
- $Id: TextFileUrlMapper.java 7707 2006-04-12 17:30:19Z ian@caret.cam.ac.uk $
- Author:
- Stephan J. Schmidt
-
-
Constructor Summary
Constructors Constructor Description TextFileUrlMapper(Class klass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddMapping(BufferedReader reader)WriterappendTo(Writer writer)WriterappendUrl(Writer writer, String key)booleancontains(String external)abstract StringgetFileName()abstract StringgetKeyName()
-
-
-
Constructor Detail
-
TextFileUrlMapper
public TextFileUrlMapper(Class klass)
-
-
Method Detail
-
getFileName
public abstract String getFileName()
-
getKeyName
public abstract String getKeyName()
-
addMapping
public void addMapping(BufferedReader reader) throws IOException
- Throws:
IOException
-
appendTo
public Writer appendTo(Writer writer) throws IOException
- Specified by:
appendToin interfaceUrlMapper- Throws:
IOException
-
contains
public boolean contains(String external)
-
appendUrl
public Writer appendUrl(Writer writer, String key) throws IOException
- Specified by:
appendUrlin interfaceUrlMapper- Throws:
IOException
-
-