Code example for Path

Methods: toUri

0
    } 
 
    @Override 
    public void writeTo(StreamOutput out) throws IOException {
        super.writeTo(out);
        out.writeString(path.toUri().toString());
        out.writeString(host);
        out.writeInt(port);
        out.writeString(cluster);
        out.writeBoolean(sniff);
        if (timeout != null) {
            out.writeBoolean(true);
            timeout.writeTo(out);
        } else { 
            out.writeBoolean(false);
        } 
        out.writeInt(maxActionsPerBulkRequest);
        out.writeInt(maxBulkConcurrency);
        out.writeMap(indexTypeDefinitions);
        out.writeMap(indexTypeNames);
Connect your IDE to all the code out there  Get Codota for Java