blob: bea5710f3e13d056941391451e2ded0cd9b0c9ce (
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
|
// package org.noreply.fancydress.directory;
import java.io.*;
import org.noreply.fancydress.directory.parser.*;
import org.noreply.fancydress.directory.*;
import org.noreply.fancydress.type3.*;
import org.noreply.fancydress.misc.*;
import org.noreply.fancydress.type3.routing.*;
public class Main {
static public void main(String argv[]) {
/* Start the parser */
try {
DirectoryParser parser = new DirectoryParser(new DirectoryLexer(new FileReader(argv[0])));
DirectoryMessage m = (DirectoryMessage)parser.parse().value;
Directory dir = new Directory(m, false);
Path path = new Path(dir,"test1 , rot26 : cf , aarg");
RoutingDestination address = new RoutingSMTP("peter@palfrader.org");
Payload payload = new Payload();
Packet packet = new Packet(path, address, payload);
FileOutputStream w = new FileOutputStream("out");
w.write(packet.asOctets());
} catch (Exception e) {
e.printStackTrace();
}
}
}
|