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.

Field Summary

static String[]
example
hardcoded list of examples.

Method Summary

static InputStream
getExample(int number)
returns the stream for example number number
static InputStream
getTemplate()
returns the template.adl stream.

Field Details

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

Method Details

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