Package java.io

Examples of java.io.DataInput.readUTF()


    DataInput input = getDataInput();
    AllAggregatorServerData aggregatorData = serverData.getAllAggregatorData();
    try {
      int num = input.readInt();
      for (int i = 0; i < num; i++) {
        String name = input.readUTF();
        GlobalCommType type = GlobalCommType.values()[input.readByte()];
        Writable value = WritableUtils.readWritableObject(input, conf);
        if (type == GlobalCommType.SPECIAL_COUNT) {
          aggregatorData.receivedRequestCountFromWorker(
              ((LongWritable) value).get(),
View Full Code Here


    DataInput input = getDataInput();
    AllAggregatorServerData aggregatorData = serverData.getAllAggregatorData();
    try {
      int num = input.readInt();
      for (int i = 0; i < num; i++) {
        String name = input.readUTF();
        GlobalCommType type = GlobalCommType.values()[input.readByte()];
        Writable value = WritableUtils.readWritableObject(input, conf);
        if (type == GlobalCommType.SPECIAL_COUNT) {
          aggregatorData.receivedRequestCountFromMaster(
              ((LongWritable) value).get(),
View Full Code Here

     * @throws IOException
     */
    public Packet readPacket(String channelID, DatagramPacket dpacket) throws IOException {
        DataInput in = new DataInputStream(new ByteArrayInputStream(dpacket.getData(), dpacket.getOffset(), dpacket
                .getLength()));
        String id = in.readUTF();
        if (channelID == null) {
            log
                    .trace("We do not have a channelID which is probably caused by a synchronization issue, we're receiving messages before we're fully initialised");
        }
        else if (channelID.equals(id)) {
View Full Code Here

     *         discarded
     * @throws IOException
     */
    public Packet readPacket(String channelID, DatagramPacket dpacket) throws IOException {
        DataInput in = new DataInputStream(new ByteArrayInputStream(dpacket.getData(), dpacket.getOffset(), dpacket.getLength()));
        String id = in.readUTF();

        if (channelID == null) {
            log.trace("We do not have a channelID which is probably caused by a synchronization issue, we're receiving messages before we're fully initialised");
        }
        else if (channelID.equals(id)) {
View Full Code Here

     * @throws IOException
     */
    public Packet readPacket(String channelID, DatagramPacket dpacket) throws IOException {
        DataInput in = new DataInputStream(new ByteArrayInputStream(dpacket.getData(), dpacket.getOffset(), dpacket
                .getLength()));
        String id = in.readUTF();
        if (channelID == null) {
            log
                    .trace("We do not have a channelID which is probably caused by a synchronization issue, we're receiving messages before we're fully initialised");
        }
        else if (channelID.equals(id)) {
View Full Code Here

        // two checksums plus the int for the size
        datasize = serializedSize + 8 + 8 + 4;

        FastByteArrayInputStream bufIn = new FastByteArrayInputStream(buffer, 0, serializedSize);
        DataInput ris = new DataInputStream(bufIn);
        String table = ris.readUTF();
        ByteBuffer key = ByteBufferUtil.readWithShortLength(ris);
        Map<Integer, ColumnFamily> modifications = new HashMap<Integer, ColumnFamily>();
        int size = ris.readInt();
        for (int i = 0; i < size; ++i) {
          Integer cfid = Integer.valueOf(ris.readInt());
View Full Code Here

        // two checksums plus the int for the size
        datasize = serializedSize + 8 + 8 + 4;

        FastByteArrayInputStream bufIn = new FastByteArrayInputStream(buffer, 0, serializedSize);
        DataInput ris = new DataInputStream(bufIn);
        String table = ris.readUTF();
        ByteBuffer key = ByteBufferUtil.readWithShortLength(ris);
        Map<Integer, ColumnFamily> modifications = new HashMap<Integer, ColumnFamily>();
        int size = ris.readInt();
        for (int i = 0; i < size; ++i) {
          Integer cfid = Integer.valueOf(ris.readInt());
View Full Code Here

     * @throws IOException
     */
    public Packet readPacket(String channelID, DatagramPacket dpacket) throws IOException {
        DataInput in = new DataInputStream(new ByteArrayInputStream(dpacket.getData(), dpacket.getOffset(), dpacket
                .getLength()));
        String id = in.readUTF();
        if (channelID == null) {
            log
                    .trace("We do not have a channelID which is probably caused by a synchronization issue, we're receiving messages before we're fully initialised");
        }
        else if (channelID.equals(id)) {
View Full Code Here

     *         discarded
     * @throws IOException
     */
    public Packet readPacket(String channelID, DatagramPacket dpacket) throws IOException {
        DataInput in = new DataInputStream(new ByteArrayInputStream(dpacket.getData(), dpacket.getOffset(), dpacket.getLength()));
        String id = in.readUTF();

        if (channelID == null) {
            log.trace("We do not have a channelID which is probably caused by a synchronization issue, we're receiving messages before we're fully initialised");
        }
        else if (channelID.equals(id)) {
View Full Code Here

        }

        if ( pluginMessage.getTag().equals( "BungeeCord" ) )
        {
            ByteArrayDataOutput out = ByteStreams.newDataOutput();
            String subChannel = in.readUTF();

            if ( subChannel.equals( "ForwardToPlayer" ) )
            {
                ProxiedPlayer target = bungee.getPlayer( in.readUTF() );
                if ( target != null )
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.