Examples of readLong()


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

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

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

Examples of krati.io.ChannelReader.readLong()

        try {
            in.open();

            // Read entry head
            long fileVersion = in.readLong();
            if (fileVersion != STORAGE_VERSION) {
                throw new RuntimeException("Wrong storage version " + fileVersion + " encounted in " + file.getAbsolutePath() + ". Version " + STORAGE_VERSION
                        + " expected.");
            }
View Full Code Here

Examples of krati.io.DataReader.readLong()

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

Examples of net.jini.io.MarshalInputStream.readLong()

           ActivationGroupInit.class.getClassLoader(),
           false, null, Collections.EMPTY_LIST);
      in.useCodebaseAnnotations();
      ActivationGroupID id  = (ActivationGroupID)in.readObject();
      ActivationGroupDesc desc = (ActivationGroupDesc)in.readObject();
      long incarnation = in.readLong();
      Class cl = RMIClassLoader.loadClass(desc.getLocation(),
            desc.getClassName());
      try {
    Method create =
        cl.getMethod("createGroup",
View Full Code Here

Examples of net.timewalker.ffmq3.common.message.BytesMessageImpl.readLong()

   
    // Long
    msg = new BytesMessageImpl();
    msg.writeBytes(dummy);
    msg.reset();
    try { msg.readLong(); fail("Should have failed"); } catch (MessageEOFException e) { /* OK */ }
    assertEquals(3,msg.readBytes(new byte[3]));
   
    // Float
    msg = new BytesMessageImpl();
    msg.writeBytes(dummy);
View Full Code Here

Examples of net.timewalker.ffmq3.common.message.StreamMessageImpl.readLong()

   
    // Long
    msg = new StreamMessageImpl();
    msg.writeBoolean(true);
    msg.markAsReadOnly();
    try { msg.readLong(); fail("Should have failed"); } catch (MessageFormatException e) { /* OK */ }
    assertTrue(msg.readBoolean());
   
    // Float
    msg = new StreamMessageImpl();
    msg.writeBoolean(true);
View Full Code Here

Examples of nom.tam.util.BufferedDataInputStream.readLong()

        /**
         * Read the edges into memory.
         */
        BufferedDataInputStream in = new BufferedDataInputStream(new FileInputStream(shovelFile));
        for(int i=0; i<shoveled.length; i++) {
            long l = in.readLong();
            int from = getFirst(l);
            int to = getSecond(l);
            in.readFully(valueTemplate);

            int newFrom = finalIdTranslate.forward(preIdTranslate.backward(from));
View Full Code Here

Examples of org.activemq.message.ActiveMQBytesMessage.readLong()

  public void testReadLong() {
    ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
    try {
      msg.writeLong(3000);
      msg.reset();
      assertTrue(msg.readLong() == 3000);
    } catch (JMSException jmsEx) {
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

Examples of org.activemq.message.ActiveMQStreamMessage.readLong()

      msg.reset();
      assertTrue(msg.readShort()==test);
      msg.reset();
      assertTrue(msg.readInt()==test);
      msg.reset();
      assertTrue(msg.readLong()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Byte(test).toString()));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
      assertTrue(false);
View Full Code Here

Examples of org.agilewiki.jid.ReadableBytes.readLong()

     */
    public Long getValue() {
        if (value != null)
            return value;
        ReadableBytes readableBytes = readable();
        value = readableBytes.readLong();
        return value;
    }

    /**
     * Returns the number of bytes needed to serialize the persistent data.
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.