Index: pkg/mime/lib/src/mime_multipart_transformer.dart |
diff --git a/sdk/lib/io/mime_multipart_parser.dart b/pkg/mime/lib/src/mime_multipart_transformer.dart |
similarity index 96% |
rename from sdk/lib/io/mime_multipart_parser.dart |
rename to pkg/mime/lib/src/mime_multipart_transformer.dart |
index e4d8f8ae22ec90e649af60516c935eee66489d3a..581308752fd4dc45183dc9b5bee199de19663018 100644 |
--- a/sdk/lib/io/mime_multipart_parser.dart |
+++ b/pkg/mime/lib/src/mime_multipart_transformer.dart |
@@ -2,7 +2,7 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-part of dart.io; |
+part of mime; |
/** |
@@ -30,6 +30,21 @@ class _MimeMultipart extends MimeMultipart { |
} |
} |
+class _Const { |
+ // Bytes for '()<>@,;:\\"/[]?={} \t'. |
+ static const SEPARATORS = const [40, 41, 60, 62, 64, 44, 59, 58, 92, 34, 47, |
+ 91, 93, 63, 61, 123, 125, 32, 9]; |
+} |
+ |
+class _CharCode { |
+ static const int HT = 9; |
+ static const int LF = 10; |
+ static const int CR = 13; |
+ static const int SP = 32; |
+ static const int DASH = 45; |
+ static const int COLON = 58; |
+} |
+ |
/** |
* Parser for MIME multipart types of data as described in RFC 2046 |
* section 5.1.1. The data is transformed into [MimeMultipart] objects, each |
@@ -398,7 +413,7 @@ class MimeMultipartTransformer |
} |
-class MimeMultipartException implements IOException { |
+class MimeMultipartException implements Exception { |
const MimeMultipartException([String this.message = ""]); |
String toString() => "MimeMultipartException: $message"; |
final String message; |