Examples of writeShort()


Examples of java.io.RandomAccessFile.writeShort()

            /* Subheader */
            /* boundary rectangle table offset */
            fout.writeInt(0);

            /* # of boundary rectangle records */
            fout.writeShort((short) groupCount);

            /* boundary rectangle record length */
            fout.writeShort((short) Bound_rec_len);

            /* For each boundary rectangle record */
 
View Full Code Here

Examples of java.io.RandomAccessFile.writeShort()

            /* # of boundary rectangle records */
            fout.writeShort((short) groupCount);

            /* boundary rectangle record length */
            fout.writeShort((short) Bound_rec_len);

            /* For each boundary rectangle record */
            for (i = 0; i < groupCount; i++) {

                group = (Group) groups.elementAt(i);
View Full Code Here

Examples of java.io.RandomAccessFile.writeShort()

            /* # of frame file index records */
            fout.writeInt(nFrames);

            /* # of pathname (directory) records */
            /* DKS NEW: was nFrames: */
            fout.writeShort(uniq_dir_cnt);

            /* frame file index record length : 33 */
            fout.writeShort(Frame_index_rec_len);

            /* Frame file index subsection */
 
View Full Code Here

Examples of java.io.RandomAccessFile.writeShort()

            /* # of pathname (directory) records */
            /* DKS NEW: was nFrames: */
            fout.writeShort(uniq_dir_cnt);

            /* frame file index record length : 33 */
            fout.writeShort(Frame_index_rec_len);

            /* Frame file index subsection */
            for (i = 0; i < nFrames; i++) { /* for each frame file */
                frame = (Frame) frames.elementAt(i);
                group = (Group) groups.elementAt(frame.group);
View Full Code Here

Examples of java.io.RandomAccessFile.writeShort()

                    Debug.error(frame.filename + ": not in a boundary rect??");
                    //              continue;
                }

                /* NEW, DKS: +1 removed so range is [0,n]: */
                fout.writeShort(frame.group); /* Boundary rect. rec. # */

                /* Frame location ROW number */
                /*
                 * DKS. Changed from top to bottom to fix bug in
                 * Theron's frame numbering
View Full Code Here

Examples of java.io.RandomAccessFile.writeShort()

                    Debug.output("group.bottom:" + group.bottom);
                    Debug.output("group.top:" + group.top);
                    Debug.output("frame row #:" + us);
                }

                fout.writeShort(us);

                /* Frame location Column number */
                /* NEW, DKS: START AT 0, NOT 1: REMOVE "+ 1": */
                fout.writeShort((short) (frame.x - group.left));

View Full Code Here

Examples of java.io.RandomAccessFile.writeShort()

                fout.writeShort(us);

                /* Frame location Column number */
                /* NEW, DKS: START AT 0, NOT 1: REMOVE "+ 1": */
                fout.writeShort((short) (frame.x - group.left));

                /* pathname record offset: */
                /*
                 * DKS 11/10: Now w.r.t. frame file index table
                 * subsection
 
View Full Code Here

Examples of java.io.RandomAccessFile.writeShort()

                /* DKS new */
                /*
                 * write pathname length. !!?? may be padded in front
                 * to align on word bndary!!??
                 */
                fout.writeShort((short) (uniq_dir[j].length()));

                /* pathname */
                fout.writeBytes(uniq_dir[j]);
            } /* for j (each uniq directory) */

 
View Full Code Here

Examples of javax.imageio.stream.ImageOutputStream.writeShort()

  }

  public void prepareWriteSequence(IIOMetadata streamMetadata)throws IOException{
    ImageOutputStream out=(ImageOutputStream)getOutput();
    out.setByteOrder(ByteOrder.LITTLE_ENDIAN);
    out.writeShort(0x00004949);               // 0: II = intel = little endian
    out.writeShort(42);                       // 2: version, magic value
    ifdptr=out.getStreamPosition();           // save position (4): write here later the offset to first ifd (ifd linked list)
    out.writeInt(0);                          // 4: offset first Image File Directory
                                              // 8: header size
  }
View Full Code Here

Examples of javax.jms.BytesMessage.writeShort()

      sent.writeBoolean(true);
      sent.writeByte((byte) 1);
      byte[] testBytes = "Bytes".getBytes();
      sent.writeBytes(testBytes);
      sent.writeChar('c');
      sent.writeShort((short) 31415);
      sent.writeInt(314159);
      sent.writeLong(3141592653589793238L);
      sent.writeDouble(3.1415926535897932384626433832795);
      sent.writeFloat(3.141f);
      sent.writeObject("31415926535897932384626433832795");
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.