Examples of readUTF()


Examples of javax.jms.BytesMessage.readUTF()

         recv.readLong() == 3141592653589793238L);
      assertTrue("Double == 3.1415926535897932384626433832795",
         recv.readDouble() == 3.1415926535897932384626433832795);
      assertTrue("Float == true", recv.readFloat() == 3.141f);
      assertTrue("Object == 31415926535897932384626433832795",
         recv.readUTF().equals("31415926535897932384626433832795"));
      assertTrue("String == 31415926535897932384626433832795",
         recv.readUTF().equals("31415926535897932384626433832795"));
   }
   public void testObjectMessage() throws Exception
   {
View Full Code Here

Examples of javax.jms.BytesMessage.readUTF()

         recv.readDouble() == 3.1415926535897932384626433832795);
      assertTrue("Float == true", recv.readFloat() == 3.141f);
      assertTrue("Object == 31415926535897932384626433832795",
         recv.readUTF().equals("31415926535897932384626433832795"));
      assertTrue("String == 31415926535897932384626433832795",
         recv.readUTF().equals("31415926535897932384626433832795"));
   }
   public void testObjectMessage() throws Exception
   {
      log.info("+++ testObjectMessage");
      BigInteger data = new BigInteger("31415926535897932384626433832795", 10);
View Full Code Here

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

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

Examples of opennlp.model.DataReader.readUTF()

   
    sLogger.debug(f);
    InputStream modelIn = localFs.open(f);
    sLogger.debug("input stream created: "+modelIn);
    DataReader reader = new PlainTextFileDataReader(modelIn);
    String modelType = reader.readUTF();
    sLogger.debug("model type: "+modelType);
    if (modelType.equals("Perceptron")) {
      delegateModelReader = new PerceptronModelReader(reader);
    }else if (modelType.equals("GIS")) {
      delegateModelReader = new GISModelReader(reader);
View Full Code Here

Examples of opennlp.model.PlainTextFileDataReader.readUTF()

   
    sLogger.debug(f);
    InputStream modelIn = localFs.open(f);
    sLogger.debug("input stream created: "+modelIn);
    DataReader reader = new PlainTextFileDataReader(modelIn);
    String modelType = reader.readUTF();
    sLogger.debug("model type: "+modelType);
    if (modelType.equals("Perceptron")) {
      delegateModelReader = new PerceptronModelReader(reader);
    }else if (modelType.equals("GIS")) {
      delegateModelReader = new GISModelReader(reader);
View Full Code Here

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

    ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
    try {
      String str = "this is a test";
      msg.writeUTF(str);
      msg.reset();
      assertTrue(msg.readUTF().equals(str));
    } catch (JMSException jmsEx) {
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

Examples of org.apache.activemq.command.ActiveMQBytesMessage.readUTF()

        int tcpCompressedSize = tcpContent.getLength();
        int httpCompressedSize = httpContent.getLength();

        assertEquals(tcpContent.getLength(), httpContent.getLength());
        assertEquals(tcpMessage.readUTF(), httpMessage.readUTF());

        LOG.info("Received Message on TCP: " + tcpMessage.toString());
        LOG.info("Received Message on HTTP: " + httpMessage.toString());

        sendBytesMessage(false);
View Full Code Here

Examples of org.apache.axis2.context.externalize.SafeObjectInputStream.readUTF()

        //---------------------------------------------------------
        // "nested"
        //---------------------------------------------------------

        // Options parent
        in.readUTF(); // read marker
        parent = (Options) in.readObject();
    }

    /**
     * This method checks to see if additional work needs to be
View Full Code Here

Examples of org.apache.cassandra.io.BufferedRandomAccessFile.readUTF()

        SSTableReader sstable = cfStore.getSSTables().iterator().next();
        DecoratedKey decKey = sstable.getPartitioner().decorateKey(key);
        long position = sstable.getPosition(decKey);
        BufferedRandomAccessFile file = new BufferedRandomAccessFile(sstable.getFilename(), "r");
        file.seek(position);
        assert file.readUTF().equals(key);
        file.readInt();
        IndexHelper.skipBloomFilter(file);
        ArrayList<IndexHelper.IndexInfo> indexes = IndexHelper.deserializeIndex(file);
        assert indexes.size() > 2;
        validateSliceLarge(cfStore);
View Full Code Here

Examples of org.apache.cassandra.io.DataInputBuffer.readUTF()

        rangeCompletedLocally = bufIn.readBoolean();

        List<String> keys = new ArrayList<String>();
        while (bufIn.getPosition() < body.length)
        {
            keys.add(bufIn.readUTF());
        }
       
        return new RangeReply(keys, rangeCompletedLocally);
    }
}
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.