/* $Id$ */ package org.noreply.fancydress.type3; import org.noreply.fancydress.crypto.*; import org.noreply.fancydress.status.*; import org.noreply.fancydress.directory.*; import org.noreply.fancydress.misc.Util; import org.noreply.fancydress.type3.routing.*; import java.net.InetAddress; public class Path { HalfPath first; HalfPath second; public Path(Directory dir, String path) throws Mix3Exception { int crossover = path.indexOf(':'); if (crossover < 0) throw new Mix3Exception("Path is not a valid path: no crossover point specified."); first = new HalfPath(dir, path.substring(0, crossover)); second = new HalfPath(dir, path.substring(crossover+1)); } public HalfPath getFirstHalf() { return first; } public HalfPath getSecondHalf() { return second; } }