Package java.io

Examples of java.io.DataInputStream.readUTF()


                    int parameterType = din.readInt();
                    if (parameterType < 1) {
                        break;
                    } else {
                        String key = din.readUTF();
                        String val = din.readUTF();
                        parameters.setProperty(key, val);
                    }
                }
                String content = din.readUTF();
                String lastMessage = din.readUTF();
View Full Code Here


                        String key = din.readUTF();
                        String val = din.readUTF();
                        parameters.setProperty(key, val);
                    }
                }
                String content = din.readUTF();
                String lastMessage = din.readUTF();
                Message msg = new Message(subject, content, urgent);
                msg.setId(id);
                msg.setRecipients(recipientList);
                msg.setSinkName(sinkName);
View Full Code Here

                        String val = din.readUTF();
                        parameters.setProperty(key, val);
                    }
                }
                String content = din.readUTF();
                String lastMessage = din.readUTF();
                Message msg = new Message(subject, content, urgent);
                msg.setId(id);
                msg.setRecipients(recipientList);
                msg.setSinkName(sinkName);
                msg.setLastMessage(lastMessage);
View Full Code Here

    try {
      DataInputStream dataInputStream = new DataInputStream(clientSocket
          .getInputStream());

      String inputLine = dataInputStream.readUTF();

      System.out.println("Start to read the input from the client.");
      while ((inputLine = dataInputStream.readUTF()) != null) {
        System.out.println(inputLine);
      }
View Full Code Here

          .getInputStream());

      String inputLine = dataInputStream.readUTF();

      System.out.println("Start to read the input from the client.");
      while ((inputLine = dataInputStream.readUTF()) != null) {
        System.out.println(inputLine);
      }

    } catch (IOException e) {
      e.printStackTrace();
View Full Code Here

        int len = ba.length - 2;
        ba[0] = (byte) (len >>> 8);
        ba[1] = (byte) len;

        DataInputStream dis = new DataInputStream(new ByteArrayInputStream(ba));
        String s = dis.readUTF();
        //String s = DataInputStream.readUTF(dis);
        // TODO:  Test the previous two to see if one works better for
        // high-order characters.
        dis.close();
        return s;
View Full Code Here

                        "Null internal to String at offset " + (i - 2));
            }
        }

        DataInputStream dis = new DataInputStream(new ByteArrayInputStream(ba));
        String s = dis.readUTF();
        //String s = DataInputStream.readUTF(dis);
        // TODO:  Test the previous two to see if one works better for
        // high-order characters.
        dis.close();
        return s;
View Full Code Here

          if( data != null ) {
            bin = new ByteArrayInputStream( data );
            din = new DataInputStream( bin );
            int num = din.readInt();
            while( num-- > 0 ) {
              String name = din.readUTF();
              //#ifdef DLOGGING
              if (finestLoggable) {logger.finest("name=" + name);}
              //#endif
              String value;
              if (currentSettings) {
View Full Code Here

                        name + e.getMessage());
                    e.printStackTrace();
                  }
                }
              } else {
                value = din.readUTF();
              }
              //#ifdef DLOGGING
              if (finestLoggable) {logger.finest("value=" + value);}
              //#endif
              m_properties.put( name, value );
View Full Code Here

    }
   
    public CallSession restoreSession(FileInputStream fis) throws Exception
    {
      DataInputStream in = new DataInputStream(fis);
      String id = in.readUTF();
      int nbAppSessions = in.readInt();
     
      for (int i = 0; i < nbAppSessions; i++)
      {
        String appId = in.readUTF();
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.