Package loci.common

Examples of loci.common.IRandomAccess.readInt()


    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);
        return result;
View Full Code Here


    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);
        return result;
      }
View Full Code Here

    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);
        return result;
      }
    }
View Full Code Here

  @Override
  protected void initFile(String id) throws FormatException, IOException {
    super.initFile(id);
    IRandomAccess is = Location.getHandle(id, false);
    is.setOrder(ByteOrder.LITTLE_ENDIAN);
    final int cookie = is.readInt();
    if (cookie != COOKIE) {
      throw new FormatException(String.format("Expected file cookie of %d, but got %d.", COOKIE, cookie));
    }
    long fileLength = is.length();
    records = new ArrayList<IM3Record>();
View Full Code Here

        if (is.getFilePointer() > fileLength-16) break;
        /*
         * # of bytes in chunk.
         */
        @SuppressWarnings("unused")
        final int chunkLength = is.readInt();
        /*
         * Is always zero? Chunk #?
         */
        @SuppressWarnings("unused")
        final int unknown = is.readInt();
View Full Code Here

        final int chunkLength = is.readInt();
        /*
         * Is always zero? Chunk #?
         */
        @SuppressWarnings("unused")
        final int unknown = is.readInt();
        /*
         * Is always one? Chunk #?
         */
        @SuppressWarnings("unused")
        final int unknown1 = is.readInt();
View Full Code Here

        final int unknown = is.readInt();
        /*
         * Is always one? Chunk #?
         */
        @SuppressWarnings("unused")
        final int unknown1 = is.readInt();
        /*
         * # of records to follow
         */
        @SuppressWarnings("unused")
        final int nRecords = is.readInt();
View Full Code Here

        final int unknown1 = is.readInt();
        /*
         * # of records to follow
         */
        @SuppressWarnings("unused")
        final int nRecords = is.readInt();
      } else {
        if (rec instanceof ContainerRecord) {
          final ContainerRecord bRec = (ContainerRecord)rec;
          for (IM3Record subDS:bRec.parseChunks(is)) {
            if ((subDS instanceof ContainerRecord) && (subDS.name.equals(FIELD_DATA_SET))) {
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.