/*
* Restream.java
* erőforrás (resource) betöltő példaprogram
* by pts@fazekas.hu at Sun May 13 11:11:59 CEST 2001
* további doksi: a README-ben és e file legkülső class-ának fejkommentjében
*
* Kincskereső Kisgömböc (C) Early May 2001 by eNTitánok (Rév Szilvia,
* Szabó Péter <pts@inf.bme.hu>, Szurdi Miklós, Weizengruber Attila).
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package eNTitanok.examples;
import eNTitanok.gfx.OkosAWT.OkosApplet;
import java.io.InputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
* Java példaprogram ClassLoader#getResourceAsStream()-re: egyszerre Applet
* és Application.
*/
public class Restream extends OkosApplet {
// public void update(Graphics g) { paint(g); }
public void start() {
System.err.println("ZZZ");
// System.err.println(Restream.this.getClass().getClassLoader()==null);
//InputStream ins=Restream.this.getClass().getClassLoader().getResourceAsStream("eNTitanok/kkkg/proba");
//System.err.println(ins==null);
String s=getEroforrasString("eNTitanok/kkkg/proba");
System.out.println(s);
System.err.println("Hello!");
}
public static void main(String argv[]) {
OkosApplet a=new Restream();
a.start();
} /// main()
} /// class Restream