Package org.gradle.messaging.serialize

Examples of org.gradle.messaging.serialize.Decoder.readString()


        try {
            String encoded = message.substring(daemonGreeting().length()).trim();
            InputStream inputStream = new EncodedStream.EncodedInput(new ByteArrayInputStream(encoded.getBytes()));
            Decoder decoder = new InputStreamBackedDecoder(inputStream);
            String pidString = decoder.readNullableString();
            String uid = decoder.readString();
            Long pid = pidString == null ? null : Long.valueOf(pidString);
            UUID canonicalAddress = new UUID(decoder.readLong(), decoder.readLong());
            int port = decoder.readInt();
            int addressCount = decoder.readSmallInt();
            List<InetAddress> addresses = new ArrayList<InetAddress>(addressCount);
View Full Code Here


            for (int i = 0; i < addressCount; i++) {
                InetAddress address = InetAddress.getByAddress(decoder.readBinary());
                addresses.add(address);
            }
            Address address = new MultiChoiceAddress(canonicalAddress, port, addresses);
            File daemonLog = new File(decoder.readString());
            return new DaemonStartupInfo(uid, address, new DaemonDiagnostics(daemonLog, pid));
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
    }
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.