adalogo
Class Examples
public class Examples
extends java.lang.Object
static class to load examples.
the example file are in the example directory
which will be packed in the jar.
files from the jar can only be opened as inputstream.
static String[] | example - hardcoded list of examples.
|
static InputStream | getExample(int number) - returns the stream for example number number
|
static InputStream | getTemplate() - returns the template.adl stream.
|
example
public static final String[] example
hardcoded list of examples.
this is necessary because a dir in a jar cannot be parsed
(at least i have no idea how).
the first in the list should always be template.adl
getExample
public static InputStream getExample(int number)
returns the stream for example number number
getTemplate
public static InputStream getTemplate()
returns the template.adl stream.
this should be equivalent with getExample(0);
this will be called by editor to load editor with template