Examples of readUTF()


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

                long indexPosition = input.getFilePointer();
                if (indexPosition == indexSize)
                {
                    break;
                }
                DecoratedKey decoratedKey = partitioner.convertFromDiskFormat(input.readUTF());
                long dataPosition = input.readLong();
                long nextIndexPosition = input.getFilePointer();
                boolean spannedEntry = bufferIndex(indexPosition) != bufferIndex(nextIndexPosition);
                if (i++ % INDEX_INTERVAL == 0 || spannedEntry)
                {
View Full Code Here

Examples of org.apache.cassandra.io.util.FileDataInput.readUTF()

            do
            {
                DecoratedKey indexDecoratedKey;
                try
                {
                    indexDecoratedKey = partitioner.convertFromDiskFormat(input.readUTF());
                }
                catch (EOFException e)
                {
                    return null;
                }
View Full Code Here

Examples of org.apache.catalina.tribes.io.ReplicationStream.readUTF()

     * Load sessionID
     * @throws IOException if an input/output error occurs
     */
    protected String deserializeSessionId(byte[] data) throws IOException {
        ReplicationStream ois = getReplicationStream(data);
        String sessionId = ois.readUTF();
        ois.close();
        return sessionId;
    }

    /**
 
View Full Code Here

Examples of org.apache.flink.runtime.io.network.serialization.DataInputDeserializer.readUTF()

      int numEvents = deserializer.readInt();
      ArrayList<AbstractEvent> events = new ArrayList<AbstractEvent>(numEvents);

      for (int i = 0; i < numEvents; i++) {
        String className = deserializer.readUTF();
        Class<? extends AbstractEvent> clazz;
        try {
          clazz = Class.forName(className).asSubclass(AbstractEvent.class);
        } catch (ClassNotFoundException e) {
          throw new RuntimeException("Could not load event class '" + className + "'.", e);
View Full Code Here

Examples of org.apache.hadoop.fs.FSDataInputStream.readUTF()

    Path idPath = new Path(rootdir, HConstants.CLUSTER_ID_FILE_NAME);
    String clusterId = null;
    if (fs.exists(idPath)) {
      FSDataInputStream in = fs.open(idPath);
      try {
        clusterId = in.readUTF();
      } catch (EOFException eof) {
        LOG.warn("Cluster ID file "+idPath.toString()+" was empty");
      } finally{
        in.close();
      }
View Full Code Here

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

      DataInputBuffer inp = new DataInputBuffer();
      inp.reset(bytes, bytes.length);
      extent = new KeyExtent();
      extent.readFields(inp);
      timestamp = inp.readLong();
      server = inp.readUTF();
      filename = inp.readUTF();
      tabletId = inp.read();
      int count = inp.read();
      ArrayList<String> logSet = new ArrayList<String>(count);
      for (int i = 0; i < count; i++)
View Full Code Here

Examples of org.apache.qpid.client.message.JMSBytesMessage.readUTF()

    public void testWriteString() throws Exception
    {
        JMSBytesMessage bm = TestMessageHelper.newJMSBytesMessage();
        bm.writeUTF("Bananas");
        bm.reset();
        String res = bm.readUTF();
        assertEquals("Bananas", res);
    }

    public void testWriteBytes() throws Exception
    {
View Full Code Here

Examples of org.apache.tapestry.internal.util.Base64ObjectInputStream.readUTF()

            {
                ObjectInputStream ois = new Base64ObjectInputStream(actionsBase64);

                while (true)
                {
                    String componentId = ois.readUTF();
                    ComponentAction action = (ComponentAction) ois.readObject();

                    Component component = _source.getComponent(componentId);

                    action.execute(component);
View Full Code Here

Examples of org.apache.webbeans.util.OwbCustomObjectInputStream.readUTF()

       
        // determine type of injection point member (0=field, 1=method, 2=constructor) and read...
        int c = in.readByte();
        if(c == 0)
        {
            String fieldName = in.readUTF();
            Field field = webBeansContext.getSecurityService().doPrivilegedGetDeclaredField(beanClass, fieldName);

            injectionMember = field;
           
            AnnotatedType<?> annotatedType = annotatedElementFactory.newAnnotatedType(beanClass);
View Full Code Here

Examples of org.codehaus.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
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.