Examples of readUTF()


Examples of java.io.ObjectInputStream.readUTF()

        int port = inControl.readInt();
        String ipPortSender = socket.getInetAddress().getHostAddress() + ":" + port;
        String sessionId = inControl.readUTF();
        String hostname = inControl.readUTF();
        HostConfiguration hostConfig = hostGroup.getHostByName(hostname);
        String webAppPrefix = inControl.readUTF();
        WebAppConfiguration webAppConfig = hostConfig.getWebAppByURI(webAppPrefix);
        ObjectOutputStream outData = new ObjectOutputStream(out);
        if (webAppConfig == null) {
            outData.writeUTF(ClusterSessionSearch.SESSION_NOT_FOUND);
        } else {
View Full Code Here

Examples of java.io.ObjectInputStream.readUTF()

            WinstoneSession session = webAppConfig.getSessionById(sessionId, true);
            if (session != null) {
                outData.writeUTF(ClusterSessionSearch.SESSION_FOUND);
                outData.writeObject(session);
                outData.flush();
                if (inControl.readUTF().equals(
                        ClusterSessionSearch.SESSION_RECEIVED))
                    session.passivate();
                Logger.log(Logger.DEBUG, CLUSTER_RESOURCES,
                        "SimpleCluster.SessionTransferredTo", ipPortSender);
            } else {
View Full Code Here

Examples of java.io.ObjectInputStream.readUTF()

                Logger.log(Logger.INFO, RESOURCES,
                        "Launcher.ShutdownRequestReceived");
                shutdown();
            } else if ((byte) reqType == RELOAD_TYPE) {
                inControl = new ObjectInputStream(inSocket);
                String host = inControl.readUTF();
                String prefix = inControl.readUTF();
                Logger.log(Logger.INFO, RESOURCES, "Launcher.ReloadRequestReceived", host + prefix);
                HostConfiguration hostConfig = this.hostGroup.getHostByName(host);
                hostConfig.reloadWebApp(prefix);
            } else if (this.cluster != null) {
View Full Code Here

Examples of java.io.ObjectInputStream.readUTF()

                        "Launcher.ShutdownRequestReceived");
                shutdown();
            } else if ((byte) reqType == RELOAD_TYPE) {
                inControl = new ObjectInputStream(inSocket);
                String host = inControl.readUTF();
                String prefix = inControl.readUTF();
                Logger.log(Logger.INFO, RESOURCES, "Launcher.ReloadRequestReceived", host + prefix);
                HostConfiguration hostConfig = this.hostGroup.getHostByName(host);
                hostConfig.reloadWebApp(prefix);
            } else if (this.cluster != null) {
                outSocket = csAccepted.getOutputStream();
View Full Code Here

Examples of java.io.ObjectInputStream.readUTF()

            {
                ois = clientDataEncoder.decodeClientData(clientEncodedActions);

                while (!eventCallback.isAborted())
                {
                    String componentId = ois.readUTF();
                    ComponentAction action = (ComponentAction) ois.readObject();

                    component = source.getComponent(componentId);

                    logger.debug("Processing: {} {}", componentId, action);
View Full Code Here

Examples of java.io.RandomAccessFile.readUTF()

        newRecord.changeLogFileName = fileName;
        newRecord.startOffset = raf.getFilePointer();
        newRecord.txid = raf.readLong();
        newRecord.type = raf.readShort();
        newRecord.timestamp = raf.readLong();
        newRecord.file = raf.readUTF();
        newRecord.endOffset = raf.getFilePointer();
        changes.add(newRecord);
        count++;
      }while (count < MAX_ENTRIES_TO_READ && raf.getFilePointer()< raf.length());
    } catch (FileNotFoundException e)
View Full Code Here

Examples of javax.imageio.stream.ImageInputStream.readUTF()

        h.check(i.getStreamPosition() == 37);
        h.check(i.getBitOffset() == 0);

        // Test readUTF().
        i.seek(12);
        String str = i.readUTF();
        h.check(str.codePointAt(0) == 18);
        h.check(str.codePointAt(1) == 33);

        b = new byte[]
          { (byte) 0x47, (byte) 0x4e, (byte) 0x55,
View Full Code Here

Examples of javax.imageio.stream.ImageInputStreamImplTest.BasicImageInputStreamImpl.readUTF()

    final BasicImageOutputStreamImpl out = new BasicImageOutputStreamImpl(
        100);
    final ImageInputStream in = new BasicImageInputStreamImpl(out.buff);

    out.writeUTF("test");
    assertEquals("test", in.readUTF());

    out.reset();
    in.reset();
    out.setByteOrder(ByteOrder.LITTLE_ENDIAN);
    in.setByteOrder(ByteOrder.LITTLE_ENDIAN);
View Full Code Here

Examples of javax.imageio.stream.MemoryCacheImageInputStream.readUTF()

        h.check(i.getStreamPosition() == 37);
        h.check(i.getBitOffset() == 0);

        // Test readUTF().
        i.seek(12);
        String str = i.readUTF();
        h.check(str.codePointAt(0) == 18);
        h.check(str.codePointAt(1) == 33);

        b = new byte[]
          { (byte) 0x47, (byte) 0x4e, (byte) 0x55,
View Full Code Here

Examples of javax.jms.BytesMessage.readUTF()

         assertNotNull(m2);

         assertEquals("aardvark", m2.getStringProperty("p1"));

         BytesMessage bm2 = (BytesMessage)theConsumer.receive(1500);
         assertEquals("aardvark", bm2.readUTF());

         MapMessage mm2 = (MapMessage)theConsumer.receive(1500);
         assertEquals("aardvark", mm2.getString("s1"));

         ObjectMessage om2 = (ObjectMessage)theConsumer.receive(1500);
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.