|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.gov.tas.dpiwe.mr.tool.DeMIME
public class DeMIME
This tool extracts all MIME sections from a file, using Mr Architecture's ByteCharTranscoder for base64 parts. (Note: quoted-printable is not yet supported - the output is an eml file with the quotes intact.)
The encoded output is echoed as it is read.
| Constructor Summary | |
|---|---|
DeMIME()
|
|
| Method Summary | |
|---|---|
static void |
deBase64Block(BufferedReader input,
OutputStream output)
Produces a single output files from an input containing base 64 encoded lines. |
static boolean |
deMIME(Reader input)
Produces output files from an input containing MIME multipart sections. |
static void |
main(String[] argv)
Initiates the DeMIME tool. |
static void |
otherBlock(BufferedReader input,
OutputStream output)
Produces a single output file from an input containing non-MIME boundary lines. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeMIME()
| Method Detail |
|---|
public static void main(String[] argv)
throws Exception
argv - first argument is a filename.
IOException - if the input file could not be
read or the output file could not be written.
Exception - if something else goes wrong.
public static boolean deMIME(Reader input)
throws IOException
input - the MIME multipart input, with encoded sections prefixed
by "Content-Transfer-Encoding:" and "Content-Type:".
IOException - if the decoding could not proceed for
whatever reason.
public static void deBase64Block(BufferedReader input,
OutputStream output)
throws IOException
input - the base 64 input.output - somewhere to write the decoded data.
IOException - if the decoding could not proceed for
whatever reason.
public static void otherBlock(BufferedReader input,
OutputStream output)
throws IOException
input - the 7-bit clear input.output - somewhere to write the decoded data.
IOException - if the decoding could not proceed for
whatever reason.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||