public void setHeightStream(InputStream stream) throws Exception {
        if (null == stream) {
            throw new Exception("Must supply valid stream.");
        }
        this.stream = stream;
    }
<code>setHeightStream</code> sets the stream to use for the RAW data. A call
to <code>load</code> is required to put the changes into effect.

@param stream
           the new stream to use for the height data.
@throws Exception
            if the stream is null or not RAW.
jme3-terrain/src/main/java/com/jme3/terrain/heightmap/RawHeightMap.java