Applied patch provided by Rob Oxspring. This patch introduces a FieldParser
commitd3398925520f007b4df196c92c9d7d45cd323815
authorNiklas Therning <niklas@apache.org>
Wed, 6 Sep 2006 19:52:27 +0000 (6 19:52 +0000)
committerNiklas Therning <niklas@apache.org>
Wed, 6 Sep 2006 19:52:27 +0000 (6 19:52 +0000)
treefbd1fa20d464aeeb4b224365adf345629b025d27
parentbcf35aae4be0dd5370bc52b903b9c4bbab4e01f3
Applied patch provided by Rob Oxspring. This patch introduces a FieldParser
interface and a DelegatingFieldParser implementation that delegates parsing
to other parsers based on the field name. The DefaultFieldParser delegates
to static inner classes of each of the existing Field implementations. The
net result is that users can now more asily add custom field parsers.

git-svn-id: https://svn.eu.apache.org/repos/asf/james/mime4j/trunk@440852 13f79535-47bb-0310-9956-ffa450edef68
src/main/java/org/mime4j/field/AddressListField.java
src/main/java/org/mime4j/field/ContentTransferEncodingField.java
src/main/java/org/mime4j/field/ContentTypeField.java
src/main/java/org/mime4j/field/DateTimeField.java
src/main/java/org/mime4j/field/DefaultFieldParser.java [new file with mode: 0644]
src/main/java/org/mime4j/field/DelegatingFieldParser.java [new file with mode: 0644]
src/main/java/org/mime4j/field/Field.java
src/main/java/org/mime4j/field/FieldParser.java [new file with mode: 0644]
src/main/java/org/mime4j/field/MailboxField.java
src/main/java/org/mime4j/field/MailboxListField.java
src/main/java/org/mime4j/field/UnstructuredField.java