|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.osmstyle.StyleFileLoader
public abstract class StyleFileLoader
Open a style which can be on the classpath (mainly for the built-in styles) or in a specified file or directory.
Constructor Summary | |
---|---|
StyleFileLoader()
|
Method Summary | |
---|---|
abstract void |
close()
Close the FileLoader. |
static StyleFileLoader |
createStyleLoader(java.lang.String loc,
java.lang.String name)
Open a style that is contained in a file. |
abstract java.lang.String[] |
list()
List the names of the styles that are contained in this loader. |
abstract java.io.Reader |
open(java.lang.String filename)
Open the specified file in the style definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StyleFileLoader()
Method Detail |
---|
public static StyleFileLoader createStyleLoader(java.lang.String loc, java.lang.String name) throws java.io.FileNotFoundException
loc
- The file or directory containing the style(s).name
- If the name is given then we look for a directory with the
given name. If there is no name, then the style is assumed to be at
the top level and/or the only file.
java.io.FileNotFoundException
public abstract java.io.Reader open(java.lang.String filename) throws java.io.FileNotFoundException
filename
- The name of the file in the style.
java.io.FileNotFoundException
- When the file can't be opened.public abstract void close()
open(java.lang.String)
. After this call then you shouldn't
open any more files.
public abstract java.lang.String[] list()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |