blob: 4289f6b86194121f1c88fdf58a164db0aec66ccd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* $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;
}
}
|