All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opengis.cite.gmljpx20.box.ResourceRequirements Maven / Gradle / Ivy

Go to download

Checks JPEG 2000 codestreams for conformance against "OGC GML in JPEG 2000 (GMLJP2) Encoding Standard Part 1" (OGC 08-085r4) and related specifications.

The newest version!
package org.opengis.cite.gmljpx20.box;

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

import org.opengis.cite.gmljpx20.util.jp2.StreamUtil;

/**
 * 

* ResourceRequirements class. *

*/ public class ResourceRequirements extends Box { private byte[] rreqData; /** *

* Constructor for ResourceRequirements. *

* @param source a {@link java.io.InputStream} object * @param length a int * @param extendedLength a long * @throws java.io.IOException if any. */ public ResourceRequirements(InputStream source, int length, long extendedLength) throws IOException { super(length); if (length == 0) { rreqData = StreamUtil.readToEnd(source); } else if (length == 1) { rreqData = StreamUtil.readBytes(source, (int) extendedLength - 16); } else { rreqData = StreamUtil.readBytes(source, length - 8); } } /** *

* Getter for the field rreqData. *

* @return an array of {@link byte} objects */ public byte[] getRreqData() { return rreqData; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy