Examples of readUTF()


Examples of org.jboss.as.protocol.ByteDataInput.readUTF()

            ByteDataInput input = null;
            try {
                input = new SimpleByteDataInput(inputStream);
                expectHeader(input, StandaloneClientProtocol.PARAM_DEPLOYMENT_NAME);
                deploymentName = input.readUTF();
            } finally {
                safeClose(input);
            }

        }
View Full Code Here

Examples of org.jboss.invocation.MarshalledValueInputStream.readUTF()

      }
      ByteArrayInputStream is = new ByteArrayInputStream(bytes);
      ObjectInputStream ois = new MarshalledValueInputStream(is);

      // Read the fqn first
      String fqn = ois.readUTF();
      ClassLoader oldTcl = null;;
      Region region = null;
      if(fqn != null && !fqn.equals("NULL"))
      {
         // obtain a region from RegionManager, if not, will use default.
View Full Code Here

Examples of org.jboss.marshalling.Unmarshaller.readUTF()

        @Override
        protected final void readRequest(final InputStream input) throws IOException {
            final Unmarshaller unmarshaller = getUnmarshaller();
            unmarshaller.start(createByteInput(input));
            expectHeader(unmarshaller, ServerManagerProtocol.PARAM_SERVER_NAME);
            serverName = unmarshaller.readUTF();
            if (expectGracefulTimeout) {
                expectHeader(unmarshaller, ServerManagerProtocol.PARAM_GRACEFUL_TIMEOUT);
            }
            unmarshaller.finish();
        }
View Full Code Here

Examples of org.jgroups.util.ByteArrayDataInputStream.readUTF()

        String name="Bela";
        ByteArrayDataOutputStream out=new ByteArrayDataOutputStream(2);
        out.writeUTF(name);
        assert out.position() == name.length() + 2;
        ByteArrayDataInputStream in=new ByteArrayDataInputStream(out.buffer());
        String tmp=in.readUTF();
        assert name.equals(tmp);
    }

    public void testUTFWithDoubleByteChar() throws IOException {
        String name="Bela\234";
View Full Code Here

Examples of org.lilyproject.bytes.api.DataInput.readUTF()

        Assert.assertEquals(d, dataInput.readDouble(), 0.0001);
        Assert.assertEquals(f, dataInput.readFloat(), 0.0001);
        Assert.assertEquals(i, dataInput.readInt());
        Assert.assertEquals(l, dataInput.readLong());
        Assert.assertEquals(s, dataInput.readShort());
        Assert.assertEquals(string, dataInput.readUTF());
        Assert.assertEquals(Math.abs(i), dataInput.readVInt());
        Assert.assertEquals(Math.abs(l), dataInput.readVLong());
    }

    public void testIndexOf() {
View Full Code Here

Examples of org.lilyproject.bytes.impl.DataInputImpl.readUTF()

            String string = randomUnicodeString();
            DataOutput dataOutput = new DataOutputImpl();
            dataOutput.writeUTF(string);
            byte[] bytes = dataOutput.toByteArray();
            DataInput dataInput = new DataInputImpl(bytes);
            String result = dataInput.readUTF();
            Assert.assertEquals(string, result);
        }
    }

    public void testRandomVString() {
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.