InputStream is = new BufferedInputStream(file.openStream()); while ((next = is.read()) != -1) bytes.add(new Byte((byte) next)); is.close(); program = new byte[bytes.size()]; for (int i = 0; i < program.length; i++) program[i] = ((Byte) bytes.get(i)).byteValue();
data = outputStream.toByteArray();
	public void load(java.net.URL file) {		int next;		ArrayList bytes = new ArrayList();		try {			InputStream is = new BufferedInputStream(file.openStream());			while ((next = is.read()) != -1)				bytes.add(new Byte((byte) next));			is.close();			program = new byte[bytes.size()];			for (int i = 0; i < program.length; i++)				program[i] = ((Byte) bytes.get(i)).byteValue();		} catch (Exception e) {			LoggingSystem.getLogger().log(Level.SEVERE,					"Could not load vertex program: " + e);			LoggingSystem.getLogger().throwing(getClass().getName(),					"load(URL)", e);		}	}