|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.osmstyle.StyleFileLoader
uk.me.parabola.mkgmap.osmstyle.DirectoryFileLoader
public class DirectoryFileLoader
Deal with a style that is contained in a directory.
Constructor Summary | |
---|---|
DirectoryFileLoader(java.io.File dir)
Create a loader given the directory as a File object. |
Method Summary | |
---|---|
void |
close()
Nothing needs doing in this case. |
java.lang.String[] |
list()
List the names of the styles that are contained in this loader. |
java.io.Reader |
open(java.lang.String filename)
Open the specified file in the style definition. |
Methods inherited from class uk.me.parabola.mkgmap.osmstyle.StyleFileLoader |
---|
createStyleLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryFileLoader(java.io.File dir)
dir
- The directory containing the style files.Method Detail |
---|
public java.io.Reader open(java.lang.String filename) throws java.io.FileNotFoundException
open
in class StyleFileLoader
filename
- The name of the file in the style.
java.io.FileNotFoundException
- When the file can't be opened.public void close()
close
in class StyleFileLoader
public java.lang.String[] list()
StyleFileLoader
list
in class StyleFileLoader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |