Examples of readInt()


Examples of javax.jms.BytesMessage.readInt()

      recv.readBytes(bytes);
      assertTrue("Bytes == Bytes[]",
         Arrays.equals(bytes, testBytes));
      assertTrue("Char == c", recv.readChar() == 'c');
      assertTrue("Short == 314159", recv.readShort() == 31415);
      assertTrue("Int == 314159", recv.readInt() == 314159);
      assertTrue("Long == 3141592653589793238L",
         recv.readLong() == 3141592653589793238L);
      assertTrue("Double == 3.1415926535897932384626433832795",
         recv.readDouble() == 3.1415926535897932384626433832795);
      assertTrue("Float == true", recv.readFloat() == 3.141f);
View Full Code Here

Examples of javax.jms.StreamMessage.readInt()

      assertTrue("Bytes == Bytes[]",
         Arrays.equals(bytes, testBytes));
      char c = recv.readChar();
      assertTrue("Char == c", c == 'c');
      assertTrue("Short == 314159", recv.readShort() == 31415);
      assertTrue("Int == 314159", recv.readInt() == 314159);
      assertTrue("Long == 3141592653589793238L",
         recv.readLong() == 3141592653589793238L);
      assertTrue("Double == 3.1415926535897932384626433832795",
         recv.readDouble() == 3.1415926535897932384626433832795);
      assertTrue("Float == true", recv.readFloat() == 3.141f);
View Full Code Here

Examples of javax.sql.rowset.serial.SQLInputImpl.readInt()

     */
    public void testReadInt() throws SQLException {
        Object[] attributes = new Object[] { Integer.valueOf("3") };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals(3, impl.readInt());

        try {
            impl.readInt();
            fail("should throw SQLException");
        } catch (SQLException e) {
View Full Code Here

Examples of krati.core.segment.Segment.readInt()

                int oldSegPos = addrFormat.getOffset(oldAddress);
                int oldSegInd = addrFormat.getSegment(oldAddress);
                int length = addrFormat.getDataSize(oldAddress);
               
                if (oldSegInd == segSourceId && oldSegPos >= Segment.dataStartPosition) {
                    if(length == 0) length = segSource.readInt(oldSegPos);
                    int byteCnt = 4 + length;
                    long newSegPos = segTarget.getAppendPosition();
                    long newAddress = addrFormat.composeAddress((int)newSegPos, segTargetId, length);
                   
                    if(segTarget.getAppendPosition() + byteCnt >= sizeLimit) {
View Full Code Here

Examples of krati.io.ChannelReader.readInt()

                        + " expected.");
            }

            long minScnHead = in.readLong();
            long maxScnHead = in.readLong();
            int length = in.readInt();

            // Read entry body
            loadDataSection(in, length);

            // Read entry tail
View Full Code Here

Examples of krati.io.DataReader.readInt()

    try {
      r.open();
      r.position(DATA_START_POSITION);
     
      for (int i = 0; i < _arrayLength; i++) {
        intArray.set(i, r.readInt());
      }
     
      _log.info(_file.getName() + " loaded in " + c.getElapsedTime());
    } finally {
      r.close();
View Full Code Here

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

Examples of loci.common.RandomAccessInputStream.readInt()

    RandomAccessInputStream ras = getCZTag(ifd);
    if (ras == null) return 1;
    ras.order(littleEndian);

    ras.seek(264);
    dimensionP = ras.readInt();
    dimensionM = ras.readInt();
    ras.close();

    int nSeries = dimensionM * dimensionP;
    return nSeries <= 0 ? 1 : nSeries;
View Full Code Here

Examples of marauroa.common.net.InputSerializer.readInt()

      addedRPObjects = new LinkedList<RPObject>();
      deletedRPObjects = new LinkedList<RPObject>();
      modifiedAddedAttribsRPObjects = new LinkedList<RPObject>();
      modifiedDeletedAttribsRPObjects = new LinkedList<RPObject>();

      int added = ser.readInt();

      if (added > TimeoutConf.MAX_ARRAY_ELEMENTS) {
        throw new IOException("Illegal request of an list of " + String.valueOf(added)
                + " size");
      }
View Full Code Here

Examples of net.minecraft.network.PacketBuffer.readInt()

                        byte b0 = packetbuffer.readByte();
                        CommandBlockLogic commandblocklogic = null;

                        if (b0 == 0)
                        {
                            TileEntity tileentity = net.playerEntity.worldObj.getTileEntity(packetbuffer.readInt(), packetbuffer.readInt(), packetbuffer.readInt());

                            if (tileentity instanceof TileEntityCommandBlock)
                            {
                                commandblocklogic = ((TileEntityCommandBlock)tileentity).func_145993_a();
                            }
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.