read tcpdump output

himy lecturer ask me to write a java program which can read and alter a tcpdump output. any api which can let me do that?thanks a lot
[154 byte] By [imin83a] at [2007-10-2 16:49:28]
# 1
java.net.*
CeciNEstPasUnProgrammeura at 2007-7-13 18:00:47 > top of Java-index,Java Essentials,Java Programming...
# 2
> java.net.*Wait a minute. Read and alter the output? java.io.*, java.util.*
CeciNEstPasUnProgrammeura at 2007-7-13 18:00:47 > top of Java-index,Java Essentials,Java Programming...
# 3
thanks a lot for the fast reply.erm, can u show me a brief example? just a very short one will do.. or point me to where can i get it?thanks a lot
imin83a at 2007-7-13 18:00:47 > top of Java-index,Java Essentials,Java Programming...
# 4
forgot to tell u that the tcpdump output is not in plaintext ... cause if i opened it using text editors like notepad it will only display some strange characters...
imin83a at 2007-7-13 18:00:47 > top of Java-index,Java Essentials,Java Programming...
# 5
A brief example for what? Reading a file? Dealing with a data format that you can't specify better than "notepad shows strange characters"?
CeciNEstPasUnProgrammeura at 2007-7-13 18:00:47 > top of Java-index,Java Essentials,Java Programming...
# 6
> the tcpdump output is not in plaintextIf you would rather be working with plaintextpipe it through$ od -txCor something.
tschodta at 2007-7-13 18:00:47 > top of Java-index,Java Essentials,Java Programming...