Examples of readUTF()


Examples of com.alibaba.dubbo.common.serialize.ObjectInput.readUTF()

                  } catch (Throwable t) {
                      res.setStatus(Response.CLIENT_ERROR);
                      res.setErrorMessage(StringUtils.toString(t));
                  }
              } else {
                  res.setErrorMessage(in.readUTF());
              }
              return res;
          } else {
              // decode request.
              Request req = new Request(id);
View Full Code Here

Examples of com.google.common.io.ByteArrayDataInput.readUTF()

    private ClassPatch readPatch(JarEntry patchEntry, JarInputStream jis) throws IOException
    {
        log("\t%s", patchEntry.getName());
        ByteArrayDataInput input = ByteStreams.newDataInput(ByteStreams.toByteArray(jis));
       
        String name = input.readUTF();
        String sourceClassName = input.readUTF();
        String targetClassName = input.readUTF();
        boolean exists = input.readBoolean();
        int inputChecksum = 0;
        if (exists)
View Full Code Here

Examples of com.hazelcast.nio.ObjectDataInput.readUTF()

        l = reader.readLong("l");
        c = reader.readCharArray("c");
        p = reader.readPortable("p");
        final ObjectDataInput input = reader.getRawDataInput();
        k = input.readInt();
        s = input.readUTF();
        sds = input.readObject();
    }

    @Override
    public boolean equals(Object o) {
View Full Code Here

Examples of com.higherfrequencytrading.chronicle.Excerpt.readUTF()

            for (int j = i; j < i + 16; j++) {
                if (Character.isValidCodePoint(j))
                    sb.appendCodePoint(j);
            }
            excerpt.index(n);
            String text = excerpt.readUTF();
            excerpt.finish();
            assertEquals("i: " + i, sb.toString(), text);
        }
        assertTrue(excerpt.nextIndex());
        String text = excerpt.readUTF();
View Full Code Here

Examples of eu.stratosphere.runtime.io.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 java.io.BufferedInputStream.readUTF()

                    }
                }
                out.flush();
                out.close();
                DataInputStream in = new DataInputStream(new BufferedInputStream(con.getInputStream()));
                String status = in.readUTF();
                if(!status.equals("OK")) {
                    progress.fail("Unable to upload files to server: "+status);
                    return;
                }
                progress.updateStatus("File upload complete (Server: "+status+")");
View Full Code Here

Examples of java.io.DataInput.readUTF()

    DataInput input = getDataInput();
    AllAggregatorServerData aggregatorData = serverData.getAllAggregatorData();
    try {
      int numAggregators = input.readInt();
      for (int i = 0; i < numAggregators; i++) {
        String aggregatorName = input.readUTF();
        String aggregatorClassName = input.readUTF();
        if (aggregatorName.equals(AggregatorUtils.SPECIAL_COUNT_AGGREGATOR)) {
          LongWritable count = new LongWritable(0);
          count.readFields(input);
          aggregatorData.receivedRequestCountFromMaster(count.get(),
View Full Code Here

Examples of java.io.DataInputStream.readUTF()

        File tfc = new File(dir, "TFC");
        if (tfc.exists()) {
          DataInputStream dis = null;
          try {
            dis = new DataInputStream(new FileInputStream(tfc));
            String tname = dis.readUTF();
            Class tclass = Class.forName(tname);
            transaction = (Transaction) tclass.newInstance();
          } catch (Exception exc) {
            logmon.log(BasicLevel.FATAL, getName() + ", can't instantiate transaction manager", exc);
            throw new Exception("Can't instantiate transaction manager");
View Full Code Here

Examples of java.io.DataInputStream.readUTF()

    try {
      input = new DataInputStream(new FileInputStream(file));
      Character character = new Character();
      character.id = input.readInt();
      character.name = name;
      character.otherStuff = input.readUTF();
      character.x = input.readInt();
      character.y = input.readInt();
      input.close();
      return character;
    } catch (IOException ex) {
View Full Code Here

Examples of java.io.DataInputStream.readUTF()

          throw new IOException("Unable to read namespace file; invalid file format version: " + version);
        }

        while (true) {
          try {
            String name = in.readUTF();
            String prefix = in.readUTF();

            NamespaceImpl ns = new NamespaceImpl(prefix, name);
            namespacesMap.put(prefix, ns);
          }
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.