// - list of subsegments
// - path
XRI xri = new XRI3("=parity*markus/+contact");
XRIAuthority xriAuthority = xri.getAuthority();
XRIPath xriPath = xri.getPath();
System.out.println("Resolving XRI " + xri.toString());
System.out.println("Listing " + xriAuthority.getNumSubSegments() + " subsegments...");
for (int i=0; i<xriAuthority.getNumSubSegments(); i++) {
XRISubSegment subSegment = xriAuthority.getSubSegment(i);
System.out.println("Subsegment #" + i + ": " + subSegment.toString());
System.out.println(" Global: " + subSegment.isGlobal());
System.out.println(" Local: " + subSegment.isLocal());
}
System.out.println("Path: " + xriPath.toString());
}