private void setup(InputStream stream, int size, int format, boolean swapxy) throws Exception { // varify that filename and size are valid. if (null == stream || size <= 0) { throw new Exception("Must supply valid stream and " + "size (> 0)"); } this.stream = stream; this.size = size; this.format = format; this.swapxy = swapxy; load(); }
private void setup(InputStream stream, int size, int format, boolean swapxy) throws Exception { // varify that filename and size are valid. if (null == stream || size <= 0) { throw new Exception("Must supply valid stream and " + "size (> 0)"); } this.stream = stream; this.size = size; this.format = format; this.swapxy = swapxy; load(); }