Package loci.common

Examples of loci.common.IRandomAccess.seek()


    IRandomAccess is = Location.getHandle(getCurrentFile(), false);
    is.setOrder(ByteOrder.LITTLE_ENDIAN);
    final ContainerRecord dataSet = dataSets.get(getSeries());
    for (IM3Record subRec:dataSet.parseChunks(is)){
      if (subRec.name.equals(FIELD_DATA)) {
        is.seek(subRec.offset+4);
        int width = is.readInt();
        int height = is.readInt();
        int channels = is.readInt();
        final byte [] result = new byte [width * height * channels * 2];
        is.read(result);
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.