package emergencylanding.k.library.debug;

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;

import emergencylanding.k.library.util.LUtils;

public class InputStreamTest {

    public static void main(String[] args) throws IOException,
	    ClassNotFoundException {
	String path = //
	LUtils.TOP_LEVEL + "/test2.zip/layers.zip" // txt.txt
		.replace('/', '\\');
	InputStream is = LUtils.getInputStreamSimple("res/txt.txt");
	System.err.println("Got " + is + " for " + path);
	if (is == null) {
	    System.err.println("No InputStream, no data?");
	    return;
	}
	System.err.println("The result text file contains this message:");
	BufferedInputStream bis = new BufferedInputStream(is);
	byte[] data = new byte[bis.available()];
	bis.read(data);
	System.err.println(new String(data));
	is.close();
    }
}

package emergencylanding.k.library.debug;

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;

import emergencylanding.k.library.util.LUtils;

public class InputStreamTest {

    public static void main(String[] args) throws IOException,
	    ClassNotFoundException {
	String path = //
	LUtils.TOP_LEVEL + "/test2.zip/txt.txt" // txt.txt
		.replace('/', '\\');
	InputStream is = LUtils.getInputStream(path);
	System.err.println("Got " + is + " for " + path);
	if (is == null) {
	    System.err.println("No InputStream, no data?");
	    return;
	}
	System.err.println("The result text file contains this message:");
	BufferedInputStream bis = new BufferedInputStream(is);
	byte[] data = new byte[bis.available()];
	bis.read(data);
	System.err.println(new String(data));
	is.close();
    }
}

Fix error in test.